Results 1 to 4 of 4

Thread: Stop Event propagation ?

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    11

    Default Stop Event propagation ?

    i am using Ext.grid.CheckboxSelectionModel for checkbox on each row of the grid.

    I want to stop event propagation when the check box is clicked. The below code is not working.

    var
    checkboxSel = new Ext.grid.CheckboxSelectionModel({
    listeners: {
    click:
    function(evt) {

    evt.stopPropagation();
    }
    }
    });

    Please help!

  2. #2
    Ext User
    Join Date
    Sep 2010
    Location
    Baltimore, MD
    Posts
    66

    Default

    In the api doc here http://dev.sencha.com/deploy/dev/docs/

    There is no click listener present.

    Are you sure you dont mean to use the rowselect or possibly the selectionchange event

    And inside of those methods you can maybe try the code
    Code:
    return false;

  3. #3
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966

    Default

    @pbban --

    The 'beforerowselect' is likely the event you're after. It's cancel-able by returning false in its handler.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  4. #4

    Default

    i have kind of same use case but i want to stop event when grid is selected so that checkbox should not be selected but navigation should work , and i can not totally disable grid selection
    is there any way , if i use 'return:false' it will stop navigation also

Similar Threads

  1. Stop event propagation on 'rowselect' event
    By SCinos in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 19 Feb 2013, 1:58 AM
  2. how to stop click event when having dblclick event
    By seldon in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 8 Nov 2011, 12:31 AM
  3. Event propagation on inhereted component.
    By ValiBOSS in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 14 Aug 2009, 12:53 PM
  4. Event Propagation
    By danutzdobrescu in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 24 Feb 2009, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •