PDA

View Full Version : [CLOSED] Dynamic TreePanel



softmachine2011
Jun 04, 2013, 9:45 AM
Hi,

I have a DropDownField with TreePanel in component tag which root value depends of other control (Combobox). I need to change the root dynamically from store via javascript.

I have used setRootNode, but when I change combobox value, treePanel is not charged yet. I've seen that treepanel is only charged when DropDownField is expanded.

Am I right? How can I change root value when I change combobox value?


I'm using Ext.Net v2.1 r4377

Daniil
Jun 04, 2013, 11:11 AM
Hi @softmachine2011,

Please try to force creating a DropDownField's Component by calling:

dropDownField.getPicker();

It should be called before selecting in a ComboBox.

softmachine2011
Jun 04, 2013, 1:01 PM
Hi,

Thank you, it works right!