View Full Version : limited CheckboxModel
dascoco
7 Feb 2012, 7:37 AM
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
mitchellsimoens
7 Feb 2012, 8:25 AM
If you return false in the beforeselect event it will stop the selection.
dascoco
7 Feb 2012, 11:16 AM
thanks, but how I can return false in the beforeselect?
mitchellsimoens
7 Feb 2012, 11:23 AM
grid.on('beforeselect', function(selModel, rec) {
return selModel.getCount() < 2;
}, grid);
dascoco
8 Feb 2012, 12:52 AM
thanks for your help
dascoco
13 Mar 2012, 1:35 AM
An how can I deselected the first selection when trying to select more.
Powered by vBulletin® Version 4.2.3 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.