Results 1 to 2 of 2

Thread: examples/ux/treegrid/TreeGrid.js

  1. #1

    Default examples/ux/treegrid/TreeGrid.js

    Hello, I`m using component TreeGrid.
    I want to catch event when row is selected and increase it height,
    but it cannot be done by standart
    "getSelectionModel().on('rowselect', ..."
    because TreeGrid doesn`t extend GridPanel.

  2. #2

    Default advanced

    So Im using now component event like this
    var tree = new Ext.ux.tree.TreeGrid({ ....});

    tree.on("click", function(el){

    var tr = Ext.fly(el);
    alert(tr); // here I see "xnode-28"

    if(tr.hasClass('x-tree-node-el')){
    tr.toggleClass('x-treegrid-col-expanded');
    }
    })

    But hasClass returns false, thow I see in dom structure that it has this class
    <tr class="x-tree-node-el x-tree-node-leaf x-tree-selected" ext:tree-node-id="xnode-28" id="extdd-7">


    So what can be wrong?

Similar Threads

  1. Replies: 4
    Last Post: 18 Sep 2010, 12:30 PM
  2. Replies: 8
    Last Post: 24 Feb 2010, 11:55 PM
  3. Require help in Drag and Drop utility from TreeGrid to TreeGrid
    By livinglegends in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 23 Nov 2009, 2:41 AM
  4. Replies: 1
    Last Post: 26 Aug 2009, 10:54 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
  •