-
14 Feb 2012 4:41 AM #1
How to cancel selection of a list item?
How to cancel selection of a list item?
I have tried using the following code
but it doesn't work, even though the function gets called. And according to the docs "Code:listeners:{ select:function(){ return false; } }This action following this event ispreventable. When any of the listeners returns false, the action is cancelled.".
Am I interpreting this wrong?
-
14 Feb 2012 4:52 AM #2
-
14 Feb 2012 6:04 AM #3
in [B2] there is a config option :
Code:disableSelection: true
-
14 Feb 2012 7:02 AM #4
That will disable all selection. I want to disable a selection after some number of selections has been made, i.e. to limit the number of selected items.


Reply With Quote