View Full Version : CellModel issues

24 May 2011, 5:48 AM
There are several problems I have noticed so far related to CellModel:

Model.clearSelection() method doesn't clear CellModel.position attribute, but CellModel.setCurrentPosition() uses position attribute to deSelect the previously selected cell.

CellModel.setCurrentPosition() ignores selectionmode attribute and deselects the currently selected cell even selectionmode is set to multi.

Store is set to remotesort, when I select a cell and click on one of the column headers in order to sort, the grid becomes empty and no rows are displayed.


24 May 2011, 8:09 AM
There is no such method as clearSelection() and deselect() needs parameters of position to deselect. Use deselectAll().

+1 for the most of the other weird and underdocumented stuff you mentioned.

25 May 2011, 12:08 AM
Thanks, I use deselectAll() instead of clearSelections(), but deselectAll() also doesn't clear the position attribute.

Offcourse when I wrote CellModel.setCurrentPosition(), I meant CellModel.setCurrentPosition(position).