Hi,
I created a page with a treeview inside a combobox like your Treeview in Combobox example.
http://demos.telerik.com/aspnet-ajax/Treeview/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx
I followed the example and it worked perfectly. However, I need to set an initial value for the combo/treeview with values from the database. I assumed I had to :
1) select the corresponding item in the treeview
2) set the text and the value for the radcombo.
I haven't been able to implement this successfully. I selected the item in the treeview with no problems, and also have been able to set the radcombobox text, but for some reason cannot set the value, and I need this value in order to insert it in a database.
This is what I've been trying to do:
Dim selectedNode As Telerik.Web.UI.RadTreeNode = tvParentPage.FindNodeByValue(parentPageId)
Me.ParentId.Items(0).Value = parentPageId
Me.ParentId.Items(0).Text = selectedNode.Text
Me.ParentId.Text = selectedNode.Text
Any sugestions on what's missing?
Thank you.
YCeron
I created a page with a treeview inside a combobox like your Treeview in Combobox example.
http://demos.telerik.com/aspnet-ajax/Treeview/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx
I followed the example and it worked perfectly. However, I need to set an initial value for the combo/treeview with values from the database. I assumed I had to :
1) select the corresponding item in the treeview
2) set the text and the value for the radcombo.
I haven't been able to implement this successfully. I selected the item in the treeview with no problems, and also have been able to set the radcombobox text, but for some reason cannot set the value, and I need this value in order to insert it in a database.
This is what I've been trying to do:
Dim selectedNode As Telerik.Web.UI.RadTreeNode = tvParentPage.FindNodeByValue(parentPageId)
Me.ParentId.Items(0).Value = parentPageId
Me.ParentId.Items(0).Text = selectedNode.Text
Me.ParentId.Text = selectedNode.Text
Any sugestions on what's missing?
Thank you.
YCeron