Results 1 to 3 of 3

Thread: [CLOSED][B3] Ext.tree.Panel controller not listening to itemclick

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    56

    Default [CLOSED][B3] Ext.tree.Panel controller not listening to itemclick

    A controller loaded for an Ext.tree.Panel is not listening for the itemclick event. Other events are heard, including itemdblclick and itemcontextmenu.

    Code:
      init: function() {
        this.control({
          'treepanel': {
            itemclick: function() {
              console.info('I am not heard.');
            },
    
            itemcontextmenu: function() {
              console.info('I am heard.');
            },
    
            itemdblclick: function() {
              console.info('I am heard.');
            },
    
            itemcollapse: function(node) {
              console.info('I am heard.');
            }
          }
        });
      }

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2009
    Posts
    317

    Default

    I'm using itemclick and my handler is being called...

    Code:
        init: function() {
            var me = this;
    
            me.control({
                'treepanel': {
                    itemclick: function() { console.log('itemclick!'); }
                }
            });
        },
    Strange that it doesn't work for you - I don't see anything wrong with your code...

    I even took the code directly from your post - and itemclick worked fine.

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    56

    Default

    Quote Originally Posted by azuroff View Post
    I'm using itemclick and my handler is being called...
    Yes... this is a complete oversight on my behalf. Thanks for checking. This can be closed.

Similar Threads

  1. Replies: 2
    Last Post: 19 Apr 2011, 2:51 PM
  2. [OPEN] [CLOSED]Ext.Controller needs documentation.
    By [email protected] in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 18 Nov 2010, 10:18 AM
  3. Replies: 11
    Last Post: 12 Jun 2008, 7:18 AM
  4. Listening to mouse on image within panel
    By mw-flow in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Jan 2008, 2:06 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
  •