1. #1
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    74
    Vote Rating
    9
    info@ferraresegroup.com will become famous soon enough

      0  

    Default Extjs 4.0 - tree.Panel 'selectionChange' work on twice click

    Extjs 4.0 - tree.Panel 'selectionChange' work on twice click


    Hi all,
    i'm testing new ExtJs 4.0 with a tree.Panel on 'selectionchange' listeners.
    When first item/node clicked it's work, next item/node at one click respond: "records[0] is undefined".
    Click another time and it's work.
    What's the problem?

    Code:
    listeners: {
    'selectionchange': function(model, records) {
    alert(records[0].get('name'));
    }

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    74
    Vote Rating
    9
    info@ferraresegroup.com will become famous soon enough

      0  

    Default


    multiSelect MUST BE true!

Similar Threads

  1. Extjs tree :Enableing click and double click event togrther
    By 2manish3 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 30 Apr 2012, 7:32 PM
  2. Event Click dont work in Panel
    By Rafael in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 11 Jan 2009, 9:38 AM
  3. Selenium's click() not work with Extjs validation
    By GeeTee in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 9 Dec 2008, 1:34 PM
  4. Tree panel click to autogrid render in Tab panel
    By dyerrington in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Oct 2008, 6:26 PM

Tags for this Thread