PDA

View Full Version : Need tu reuse tree nodes



nibblas
27 Oct 2010, 4:47 AM
hy

unfortunately i could not response to this thread

http://www.sencha.com/forum/showthread.php?97060-Need-to-reuse-tree-nodes&highlight=cs+is+null

i have a window with a treepanel, if i close this window and like to re open it, following error appears
cs is null <a class="objectLink objectLink-sourceLink a11yFocus ">ext-all-debug.js (line 32770)


renderChildren : function(suppressEvent){ 32766 if(suppressEvent !== false){ 32767 this.fireEvent('beforechildrenrendered', this); 32768 } 32769 var cs = this.childNodes; 32770 for(var i = 0, len = cs.length; i < len; i++){ 32771 cs[i].render(true); 32772 } 32773 this.childrenRendered = true; 32774 },


as written in the thread above i have to save configuration (node.attributes) plus children and then re-create the tree from that.

but how can i do that?

greetings nibblas

nibblas
29 Oct 2010, 8:12 AM
no idea?