PDA

View Full Version : Column Sorting



justheatingup
23 Apr 2007, 1:40 PM
Hey guys,

The grid ColumnModel config object doesn't keep the sort state from the dataStore. If it did, you can get the state of the grid's current configuration from once place.

We are currently having to go to the dataStore for the current sort. We feel in addition to being there, it should also reside in the ColumnModel.

Lastly, the docs on ColumnModel need a bit of refreshing..

setHidden
findColumnIndex
setLocked
moveColumn

Let me know your thoughts.

~A

jack.slocum
23 Apr 2007, 4:28 PM
Considering the purpose of each - the sort state of the data really isn't related to the column model. Can I ask what you are doing that makes it hard?

justheatingup
23 Apr 2007, 7:53 PM
Assume you wish to store the state of the grid (including the sort) as to recall it at some later date. The indicators (asc/desc) are part of the presentation. We currently have to look to the dataModel for this. It's not the end of the world, but it seems more friendly to look in one place for this. We currently look to the columnModel to determine order, visibility, and other visual elements.

I still think that having that element at the dataModel is useful and appropriate.