Hi I am new to blackberry i am working on listview . Here i want a custom list item layout.
In my list view i ll have a user image on left nd on right layout part i ll have following things
1st row title (Text field)
2nd row text field with image right to it .
3rd row is a text-field
and to right of this layout i ll have a image (right arrow)
[left-part of list item image][middle part with 3 rows ][ last part with image]
like the above
please help me
I think you can do this by creating component of row. Your row should be like this.
First of all there must be a HorizontalFieldManager that is our row. And you shuld create BitmapFields and LabelFields with overrided getPreferredWidth() and getPreferredHeight(). In these methods remove super.getPreferredWidth() and super.getPreferredHeight() and put your fixed height and width.
Add one of your CustomBitmapField to HFM
Create one VerticalFieldManager and add 3 of your CustomLabelFields after that add VFM to HFM
Add second CustomBitmapField to HFM
Now your row is ready. You can create custom list field by adding these rows to your screen or a VerticalFieldManager
Related
I created a custom screen in Acumatica. I have a simple table and a grid to add records to it. The Account Mapping grid works (and it is way more complicated). But on the Branch Mapping grid, when I click the “PLUS” icon, the icon goes grey and no new row is available on the grid.
This is what is looks like after clicking the PLUS icon:
The table is very simple.
When a Company is selected, the view for the grid is
public SelectFrom<ICSBranchMapping>
.Where<ICSBranchMapping.organizationID
.IsEqual<ICSSetup.organizationID.FromCurrent>>.View BranchMapping;
The ICSSetup table is even simpler:
If I create a new record in ICSSetup, it lets me add 1 row to the ICSBranchMapping table
But I cannot add another row.
Here is the DAC for the ICSBranchMapping table
The records in the DB all look fine after adding the 1 row it will allow me to enter.
The action button is a dummy. The code has been commented out to ensure it has nothing to do with the issue.
I forgot to mention, I CAN update the existing row.
I’ve been fighting with this for 2 days. If anyone has any suggestions, please help.
Solved. I added the BranchMapping grid using the customization editor.
It did not include this line in the aspx:
That fixed it. It seems like that should be a default in the Screen Editor.
I want to make two seperate grids, one with 2 columns and 8 rows and another with 4 columns and 8 rows. Which layout should I choose? It only needs to work vertically and there should be some space on the top for a button. I don't want any elements to disappear, but I would also prefer not to scroll to see all elements.
You can use a GridLayoutManager instead of a LinearLayoutManager when you set the RecyclerView up.
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
Also, this tutorial will provide you further detail https://www.android-examples.com/android-recyclerview-with-gridview-gridlayoutmanager/.
I have a working <kendo-grid> component with 10 visible rows over a data set of 34 rows (approx 4 pages). Sorting and selecting is working as expected.
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="true"
[height]="300"
(pageChange)="pageChange($event)"
[sortable]="{ mode: 'single' }"
[sort]="sort"
[selectable]="true"
(sortChange)="sortChange($event)"
(selectionChange)="selectionChange($event)">
Say I select second row. Then I sort the table and the selection stays on row two but of course it's highlighting a different record. It's always selecting the second row on the grid, which of course, it's what I want.
How do I clear the selected row in my (sortChange) event so at least the user isn't presented with a different selection that they one they already chose. I am open to some kind of data binding attribute for selected row that I could set to null or some property on gridView or even poking around inside #ViewChild .
Any help would be appreciated.
Normal Sort
Ascending Sort
Descending Sort
I had a similar question here: Select grid row item from code
Basically, you also need to select the grid row item from code without user interaction and this is currently not supported in the current beta build of the Kendo UI Angular2 controls.
In my application, I resort to triggering a click event on the row I want to select. :/
I do this in a case where I have 'up' and 'down' buttons to rearrange the grid and want to maintain my selection when I switch items.
var grid = document.getElementById('myGrid');
var rows = grid.getElementsByTagName('tr');
rows[idx].click(); // add one to the desired row index to skip the header row
Here's a (sloppy, minimal) Plunkr of this scenario: http://plnkr.co/edit/09dlqdl0Xchoy0e5zKRq
I have a simple section with a short caption = "A" in the first EntryElement. So the first element caption width is very small.
Then, I have to add new elements programmatically. The new elements that I have to add have captions larger than the first one (like "AAAA"). As result, the new captions columns are smaller than the new captions text so the caption and the entry are overlapped.
There is a method in order to update the entire section to fit all new captions in there?
It's quick and dirty, but why not just add
"A".PadRight(100)
to the first EntryElement caption?
current setup:
1. Parent content type (PCT1) has 5 columns (including Title column)
2. Child content type (CCT1-A) inherites from PCT1 and adds 5 more columns (but child ct also comes with it's own Title column).
3. Now I associates Child control type to a document library.
4. I see two titles in the edit item or new item page
5. If i disable (hide) any one of the Title column (either in parent or child ct. NOT hiding from both CT) then both titles dissappears from edit or new page
6. What are my solution?
7. I must have the Title column but it seems each CT is bringing it's own Title
Please suggest.
You can simply exclude CCT1-A.Title column from your child content type, if you need only one title and columns CCT1-A.Title and PCT1.Title are same type.
If titles are different types, and you want to save their names, simpliest workaround is to replace these 2 old with new 3 content types:
First has 4 columns from your PCT1 NOT including "Title"
Second inherits from the First, and has extra column "Title"
The last one inherits from First too, and has 5 extra columns from CCT1-A, including "Title"
So, second is equivalent to your old PCT1.
Third is equivalent to your CCT1-A, without PCT1.Title column
First is internal, "base" content type.
Details on creating SharePoint 2010 content types you can find on MSDN, please, follow link below:
http://msdn.microsoft.com/en-us/library/aa543822(office.14).aspx
Hope it helps!