I started developing with smartgwt few weeks ago and I am having a problem.
I have a ListGrid and i don't use any datasource for the displayed data. I do all the insertions manually with a ListGridRecord[]. It works fine but i don't know how to insert
a cell in specific row, column. Any idea??
Thank you.
ListGrid.getRecord(index).setAttribute(property, value);
Related
I am displaying data in TMS's TDBAdvGrid. In TMS's version 3 when clicking on the grid's header the data would be sorted in ascending or descending order of the clicked grid's column. In version 6 the same code doesn't sort the data anymore; nothing happens. It seems they changed something. Is there a way to make it work like before? Thank you.
I'm using the latest version of Angular UI Grid and am struggling with how to determine if the focus is currently on the last displayed row of the grid.
The data array is not sorted the way it is on-screen, so I cannot use that info. I read that the visible row cache should be sorted as it is on-screen, but I think that might be related to the old ng-grid. At any rate, if I look at gridApi.core.getVisibleRows(myGrid) it still has the sorting as per the raw data.
I am currently handling the event gridApi.cellNav.on.navigate(newRowCol, oldRowCol). I can see the column and row that the user has the focus on, but I cannot see any values in this event (or elsewhere) that I can use to determine if the row is the last-displayed on-screen. I'd appreciate any tips!!
You should use gridApi.grid.renderContainers.body.visibleRowCache which is an array sorted the way the rows are visible on the screen. You can then check if the row is the last row with something like:
oldRowCol.row.uid == $scope.gridApi.grid.renderContainers.body.visibleRowCache[$scope.gridApi.grid.renderContainers.body.visibleRowCache.length-1].uid
In my application I have to show data in grid like Asp.net gridControl.I want following features
Sorting on multiple column
Filtering on multiple column
Editable data, update data.
Resizing Column width.
Filtering between 2 dates
Have any example which meet my requirements.
Thanks
In iOS SDK UICollectionView can be used as Grid View. Using UICollectionView along with search bar sorting, filtering can be achieved.
Hope this helps.
Use UICollectionView or try to use some already made controls
https://www.cocoacontrols.com/tags/grid
I use SmartGwt Listgrid to show a list of objects, each object contains many subobjects. So when I click on a specific row, I show a popup that allows me to update this subobject's list.
The second constraint is to allow the user to select many rows, to be merged into one row. For that I use checkbox selection type like the following code :
myListGrid.setSelectionType(SelectionStyle.SIMPLE);
myListGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
All work perfectly for the first load. The problem is when I show / hide the popup, the select/deselect feature of the Listgrid stops functioning. Once the checkbox is clicked, it remains unchanged.
Thank you for your suggestions.
I answering my own question,
After many hours of investigation, the problem is that I mix listGrid of smartGwt and dialogBog of GWT, when I changed DialogBox with Dialog of smartGwt the problem is solved
I have two listgrid. My 1st listgrid is holding Record(List of Field) and my 2nd listGrid is holding record(field). And my issue is i have to assign multiple record(multiple rows) of 2nd list grid to the single record(Single row) of 1st grid on the action on Button.and 1st ListGridRecord is list of 2nd ListGridRecord. Hope i am able to forward my thought to you. Please reply me as soon as possible. Thanks