Aug 28, 2012, 10:48 AM
[CLOSED] Treepanel show/hide childnodes
Hi,
Related to this thread http://forums.ext.net/showthread.php...S-getUI-method, I must port to Ext.NET 2.1 the following:
Related to this thread http://forums.ext.net/showthread.php...S-getUI-method, I must port to Ext.NET 2.1 the following:
myFunction: function (id) {
treePanel.collapseAll();
for (var i = 0; i < treePanel.getRootNode().childNodes.length; i++) {
if (id == 0) {
//Todos los elementos
treePanel.getRootNode().childNodes[i].getUI().show();
}
else {
if (parseInt(treePanel.getRootNode().childNodes[i].id, 10) != parseInt(id, 10))
treePanel.getRootNode().childNodes[i].getUI().hide();
else
treePanel.getRootNode().childNodes[i].getUI().show();
}
}
}
Like we know, getUI method doesn't exists, how can I show/hide childNodes now?
Last edited by Daniil; Aug 28, 2012 at 1:05 PM.
Reason: [CLOSED]