Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid SortSpecifier

$
0
0
SmartClient Version: v9.1p_2014-06-04/Pro Deployment (built 2014-06-04)

Is there a way to change the ListGrid SortSpecifier(s) and corresponding indicators in the ListGrid column headers without causing a client-side sort?

For example, if I am populating a ListGrid using a ResultSet as follows:

Code:

Record[] recordList = response.getData();
 int length = (recordList == null) ? 0 : recordList.length;
 ResultSet resultSet = new ResultSet(dataSource);
 resultSet.setInitialLength(length);
 resultSet.setInitialSort(someNewSortSpecifiers);
 resultSet.setInitialData(recordList);
 resultSet.setCriteria(criteria);
 resultSet.setAllRows(recordList);
 listGrid.setData(resultSet);

My assumption was that by setting "resultSet.setInitialSort(someNewSortSpecifiers);", when listGrid.setData() is called, the ListGrid SortSpecifier(s) and corresponding indicators would reflect the sortBy value, however, this does not seem to be the case. I don't believe this even updates the listGrid.getSort() value.

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles