Thursday, 6 March 2014

Extjs MVC: How to Read Parent Tree node name in itemClick Listener



 In Extjs. TreePanel We can Find the Selected Item of ParentNode.


  TreeItemClick: function(tree, record, item, index, e, eOpts) {
      var treeParentNode = record.parentNode;
        if(treeParentNode) {
            alert(treeParentNode.get('text'));
        }
    }



No comments:

Post a Comment