Categories | Question details Back To List | ||
Need to specify a default sorting Be default, no sorting is applied to the data loaded in the grid. This is fine, as i don't want to have to do a grid sort after loading. I am loading my data from the server in an ascending sort. So, when i do the column sort for the first time, i expect it to do a 'descending' sort first. However, it currently does an asceding sort first. Is there a way i can tell the grid that the data is already being loaded as in ascending order, so it can do the desc sort first? Answer posted by Support on Mar 10, 2008 02:45 You can use next API call grid.setSortImgState(true,INDEX,"asc"); where INDEX - index of column by which data sorted, the grid will not change anything in dataset, just will update inner sorting state and will show sort marker at necessary position. |