View Full Version : No way to clear a sort on a grid?

5 May 2010, 8:58 PM
Hi All,

I have a grid that a user can sort on a column.
I want to leave the order as it is, but then insert a new row at the top (not it's correct place according to the sort).
When I do the insert, I get the order I want, but the previously sorted column is still highlighted as sorted, which is no longer correct.

So I looked for a way to clear the sort, but didn't find anything in Store, GridPanel or GridView. I tried applying an empty array of sorts, but that didn't work either.

In the end I had it sort on an empty, hidden row, so that the order is preserved and visible columns don't appear to be sorted.

Is there a less hacky way to do this?