1. #1
    Sencha User ilija139's Avatar
    Join Date
    Aug 2011
    Location
    Macedonia
    Posts
    36
    Vote Rating
    0
    ilija139 is on a distinguished road

      0  

    Default How to cancel selection of a list item?

    How to cancel selection of a list item?


    I have tried using the following code

    Code:
    listeners:{ 
               select:function(){       return false;  }
    }
    but it doesn't work, even though the function gets called. And according to the docs "
    This action following this event is
    preventable. When any of the listeners returns false, the action is cancelled.".

    Am I interpreting this wrong?

  2. #2
    Sencha User ilija139's Avatar
    Join Date
    Aug 2011
    Location
    Macedonia
    Posts
    36
    Vote Rating
    0
    ilija139 is on a distinguished road

      0  

    Default


    Also I'm trying to call getCount( ) on the list object with no success.

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default


    in [B2] there is a config option :
    Code:
    disableSelection: true

  4. #4
    Sencha User ilija139's Avatar
    Join Date
    Aug 2011
    Location
    Macedonia
    Posts
    36
    Vote Rating
    0
    ilija139 is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar