Posts

Showing posts from March, 2013

ExtJS Treepanel all nodes loaded event

Image
In ExtJS (any version), in Ext.tree.TreePanel, when we load the tree, there in no event to check if all my tree-nodes are completely loaded ( or not in store but actually all nodeui's are loaded into the dom or not), i.e. doing something after full or part of tree gets loaded, I wanted this functionality sometime back, so we did this. Though there is a callback function on expand and collapse method calls on TreeNode, but they only check if the immediate child of this node are expanded and loaded in dom and not the whole lower tree nodes. This is again , a subjective solution, it might not satisfy your need but you can give this a try. In our case, we were expanding the Treepanel completely, when Treeloader loads its data, so my code looked like ... new Ext.tree.TreePanel({ id : 'MyGrid', autoScroll : Globals.Boolean.TRUE, animate : false, //DO NOT ENABLE IT TO TRUE, AS IT TAKES TIME TO LOAD NODES IN DOM-TREE border : true, enableDD : true, containerS...