Hello,
I've made a itemtemplate which fills in a treeview dynamically in a radcombo.
Selecting a node will reflect in the text and value of the combobox like previous threads has shown.
BUT I like an autopostback of the combo when the user has selected a node from the treeview. The first time is no problem because the slectedindex has changed. The second time however we set the text and value of the combo correctly through javascript (and placing the value in a asp hidden field) but the event of selectedindexchanged is not fired because the index didn't change.
Any ideas on how to tackle this problem??
I've made a itemtemplate which fills in a treeview dynamically in a radcombo.
Selecting a node will reflect in the text and value of the combobox like previous threads has shown.
BUT I like an autopostback of the combo when the user has selected a node from the treeview. The first time is no problem because the slectedindex has changed. The second time however we set the text and value of the combo correctly through javascript (and placing the value in a asp hidden field) but the event of selectedindexchanged is not fired because the index didn't change.
Any ideas on how to tackle this problem??
5 Answers, 1 is accepted
0
Hello Geert,
I suggest you call the FindItemByText method of RadComboBox with a parameter the text that you set .Then you call select the item with this text. For example : combo.findItemByText(sometext).select();
All the best,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I suggest you call the FindItemByText method of RadComboBox with a parameter the text that you set .Then you call select the item with this text. For example : combo.findItemByText(sometext).select();
All the best,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Geert
Top achievements
Rank 1
answered on 24 Jul 2008, 11:35 AM
Hello,
I was playing around with the treeview in the combobox but when triggering the selected node of the tree on click its still a bit fuzzy.
The requested functionality is like this link on your telerik support page: when selecting a node there's a label being filled up through ajax
http://www.telerik.com/support/home.aspx
can you please post a sample that simulates the functionality.
thank you very much
I was playing around with the treeview in the combobox but when triggering the selected node of the tree on click its still a bit fuzzy.
The requested functionality is like this link on your telerik support page: when selecting a node there's a label being filled up through ajax
http://www.telerik.com/support/home.aspx
can you please post a sample that simulates the functionality.
thank you very much
0
Hello Geert,
Please find the attached project illustrating the needed approach.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please find the attached project illustrating the needed approach.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Geert
Top achievements
Rank 1
answered on 24 Jul 2008, 02:46 PM
First of all thank you very much,
But I didn't make myself clear enough. I forgot to tell you that the treeview is loaded dynamically (from codebehind) using a class implementing ITemplate.
1. => triggering postback through selectedindexchanged which never has the value of the selected node?
or
2. => triggering nodeclick from tree but thtat's defined in the template itself? + will not be ajaxified by radmanager?
Do you guys have an example for this scenario?
thanks in advance
But I didn't make myself clear enough. I forgot to tell you that the treeview is loaded dynamically (from codebehind) using a class implementing ITemplate.
1. => triggering postback through selectedindexchanged which never has the value of the selected node?
or
2. => triggering nodeclick from tree but thtat's defined in the template itself? + will not be ajaxified by radmanager?
Do you guys have an example for this scenario?
thanks in advance
0
Hello Geert,
Please find the modified project.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please find the modified project.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.