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:
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
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);
Thanks
Comment