Results 1 to 2 of 2

Thread: Problem with checkchange and itemclick events in tree panel

  1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default Problem with checkchange and itemclick events in tree panel

    Hello,
    I am using a treeepanel. Here on clicking the leaf node i open a panel showing the related elements.
    I want that panel to open by clicking node text and not check box.

    sample code:

    listeners : {
    checkchange: function(node, chk, eOpts){

    },
    itemclick: function(view, node, item, index, e, eOpts) {
    var formPanel = new Ext.form.FormPanel({});
    }
    }

    now my problem is in IE this works fine - on node text click it shows the panel.
    But in mozilla and crome it shows the panel on check event also.

    so how can i resolve this issue?

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,751
    Answers
    130
    Vote Rating
    129
      0  

    Default

    In your itemclick handler, you get the parameter e.
    You can use e.getTarget() to see which DOM node was clicked.

    So you can check for your checkbox and stop the form creation in this case.

    Best regards
    tobiu
    Best regards
    Tobias Uhlig

Tags for this Thread

Posting Permissions

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