Re: setSortAscending on BeanModel in Grid

2010-10-21 Thread Darren Williams
thanks. It certainly works. Just seems like a hack for something so simple. On Oct 20, 2010, at 9:38 AM, Josh Canfield wrote: > If you want to you can provide a custom sort model, it's a pretty > simple interface. > > Alternatively, if all you want to do is start with sort descending > then you

Re: setSortAscending on BeanModel in Grid

2010-10-20 Thread Josh Canfield
If you want to you can provide a custom sort model, it's a pretty simple interface. Alternatively, if all you want to do is start with sort descending then you could just do this: _grid.getSortModel().updateSort("entered"); // sorts ascending _grid.getSortModel().updateSort("entered"); // now sor

Re: setSortAscending on BeanModel in Grid

2010-10-20 Thread Rich M
Hi, I don't use 5.2, but it seems based on your code this should work (I do this in 5.1.0.5): ColumnSort colSort = _grid.getSortModel().getColumnSort("txnId"); while(!colSort.equals(ColumnSort.DESCENDING)){ _grid.getSortModel().updateSort("txnId"); //Should invert the sort