dfenwick
20 Sep 2006, 8:14 PM
2 bugs in the visual portion of the sorting:
1) The first time the grid is loaded, there is no sort graphic indicator present on the grid. Changing the sort order by clicking a header then displays the sort indicator. I've tried using the setDefaultSort() member function, but it doesn't change anything.
2) When clicking on a column header to change the sort, there is some confusing behavior. When it's first clicked, it sorts ascending. When you click again on the same column header, it sorts descending. That's all correct. The bug appears to be persistence attached to a column after you've already sorted it. After a fresh refresh of a grid, with Col1 being the default sort column, it comes up sorted ascending on Col1. If you click on Col2 it then sorts ascending for Col2. If you then click on Col1 again, it should set it back to Col1 being sorted ascending, but it actually sorts it descending (looks like it remembers the previous state of the column and flips it as it were the current column.) The column sort should remember its last sort order and resume that sort if it's not the currently sorted column.
1) The first time the grid is loaded, there is no sort graphic indicator present on the grid. Changing the sort order by clicking a header then displays the sort indicator. I've tried using the setDefaultSort() member function, but it doesn't change anything.
2) When clicking on a column header to change the sort, there is some confusing behavior. When it's first clicked, it sorts ascending. When you click again on the same column header, it sorts descending. That's all correct. The bug appears to be persistence attached to a column after you've already sorted it. After a fresh refresh of a grid, with Col1 being the default sort column, it comes up sorted ascending on Col1. If you click on Col2 it then sorts ascending for Col2. If you then click on Col1 again, it should set it back to Col1 being sorted ascending, but it actually sorts it descending (looks like it remembers the previous state of the column and flips it as it were the current column.) The column sort should remember its last sort order and resume that sort if it's not the currently sorted column.