Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    32
    Vote Rating
    1
    tangalla is on a distinguished road

      0  

    Default problem in handling selectionchange and itemclick events

    problem in handling selectionchange and itemclick events


    Hello All,

    I have a grid which has selectionchange and itemclick events. On selectionchange performs only when the check box is selected or deselected. But it also fire item click event , which i dont want to do. So i have to prevent the itemclick event on selectionchange. I trid using stopevent and stoppropagation both didnt work.

    selModel: Ext.create('AppShell.lib.CheckboxModel' ,{

    listeners : {
    'selectionchange': function(){
    Ext.EventManager.stopPropagation('itemClick'); or
    Ext.EventManager.stopEvent('itemClick');
    }But

    i have some thing working code where i have some delay on itemclick event mean while i am setting some flag based flag i am firing the event . I know this is not the best solution and this solution has some defects too.

    Thanks in advance.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    23
    Vote Rating
    0
    srknori is on a distinguished road

      0  

    Default


    Do you really need both the events?

Thread Participants: 1