PDA

View Full Version : [CLOSED] SetNodeText in 2.0



gets_gui
Apr 04, 2012, 3:32 PM
Hi,

I am trying to migrate from 1.3 to 2.0 beta.
How can I do
TreeGrid1.SetNodeText(node, textValue) and
ComboBoxType.SelectedIndex = 0 in 2.0?

Thanks!

Daniil
Apr 04, 2012, 4:22 PM
Hi,



TreeGrid1.SetNodeText(node, textValue)

Please use:

TreePanel1.GetNodeById("Root").Call("set", "text", "new text");

We will add the Set method. Then it will look:

TreePanel1.GetNodeById("Root").Set("text", "new text");



ComboBoxType.SelectedIndex = 0

Please use:

ComboBox1.SelectedItems.Add(new Ext.Net.ListItem { Index = 0 });

We will add respective items in Changelog, thanks for the reports.

gets_gui
Apr 04, 2012, 5:20 PM
Hi Daniil,

Thank you for the quick response.
I have question Regarding to the second parameter for
TreePanel1.GetNodeById("Root").Call("set", "text", "new text"); The text is standing for the text attribute or the old text value?

And I what's the right way to do
TreeGrid1.SelectNode("Root") in 2.0?

Daniil
Apr 04, 2012, 5:37 PM
I have question Regarding to the second parameter for
TreePanel1.GetNodeById("Root").Call("set", "text", "new text"); The text is standing for the text attribute or the old text value?

For the text attribute.


And I what's the right way to do
TreeGrid1.SelectNode("Root") in 2.0?

Could you start a new forum thread, please?