I have a tree panel with some items. Whenever I render the treepanel an item should be selected by default.
Asked
Active
Viewed 1.0k times
2
-
1Make an try first, which gives you more hope. if you fail in your code, post those code and get resolved here. Let your contribution fix it too.... – Hariharan Jul 24 '13 at 12:10
1 Answers
0
Please refer this code. This will work
Ext.each(Nodes, function(item, index, allNodes)
{
var rec = TreePanelObj.getView().getRecord(item);
if() //any condition
{
TreePanelObj.getSelectionModel().select(index);
}
});

Renganathan M G
- 5,039
- 2
- 31
- 35