PDA

View Full Version : Tree Selection Model in Extjs not picking up children recursively



ravi_pendyala
28 Aug 2012, 10:07 PM
Hi,

i am using the Tree panel (tree column grid) in my app. when i use selection model on the same i could not get the child items recursively. when i try to use this approach i coul only pick the current row and its children up to one level only, but not children children. i wanted to select all the children recursively on selection any help will be really appreciated.

following is my code snippet:

var sm = this.getSelectionModel();
sm.setSelectionMode('MULTI');
var selModel = sm.getSelection()[0];
alert(selModel.data.toSource());
var myData = selModel.data;
var isolateTree = Ext.create('ab.view.IsolateTree');
isolateTree.getRootNode().appendChild(myData);