PDA

View Full Version : Run createPicker function on every click on pickerfield



harman
12 Apr 2012, 3:28 AM
Hi,

I am using a pickerfield that creates a Tree under createPicker function when i click trigger.
But that happens only first time.
I want to run create picker function every time someone clicks on trigger so as to recreate the Tree with modified data.

How can that be done?

thanks in advance

harman
12 Apr 2012, 3:53 AM
Alternatively how to refresh the Tree structure?

harman
13 Apr 2012, 1:21 AM
for now i am using



var allChildNodes= tree.getRootNode().childNodes;
tree.getRootNode().removeAll();
tree.getRootNode().appendChild(allChildNodes);


It works ok for me But i really feel Tree must have anything to restructure itself.
One can also try



tree.getView().refresh();


Thanks