PDA

View Full Version : sortable option doesn't do anything for CheckboxSelectionModel?



gopunk
31 Jan 2008, 9:30 PM
This is what I have to initialize the CheckboxSelectionModel:


var checkbox_selection_model = new Ext.grid.CheckboxSelectionModel({sortable: true, header: '', id: 'selected', width: 28});Everything works great, except the sortable option doesn't work as the API docs indicate it should; the column is not sortable.

Any ideas?

Thanks!

gopunk
4 Feb 2008, 5:06 PM
bump

Condor
4 Feb 2008, 11:56 PM
A checkbox selection model isn't sortable, because it has not underlying data in the store.

As an alternative, you could use a CheckColumn (from the Editor Grid example (http://extjs.com/deploy/dev/examples/grid/edit-grid.html)) linked to a boolean field in the store.