Hallo,
I've a Grid with CheckboxModel and I would limited the selection of two selections/rows. How can I limited this?
thanks for help
Hallo,
I've a Grid with CheckboxModel and I would limited the selection of two selections/rows. How can I limited this?
thanks for help
Code:grid.on('beforeselect', function(selModel, rec) { return selModel.getCount() < 2; }, grid);
If you return false in the beforeselect event it will stop the selection.
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
thanks, but how I can return false in the beforeselect?
Code:grid.on('beforeselect', function(selModel, rec) { return selModel.getCount() < 2; }, grid);
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
thanks for your help
An how can I deselected the first selection when trying to select more.