Results 1 to 2 of 2

Thread: Problem with checkchange and itemclick events in tree panel

  1. #1
    Sencha User
    Join Date
    Jul 2013

    Default Problem with checkchange and itemclick events in tree panel

    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
    Munich (Germany)


    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
    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