Okay, so I've got a ComboBox that contains a RadTreeView, very similar to the Telerik demo. Neat functionality. However, when I'm first loading the page, I naturally want to set both the state of the embedded RadTreeView control and the RadComboBox itself.
In the snippet of code pasted below, you can see how I'm doing this. (This is all from the Code-Behind.) The name of the RadComboBox is "WebsiteDocumentationParent," and as you can see in the final line, I'm setting it's .Text property value to be the same as the .Text property of the node that's been selected in the embedded RadTreeView.
The code runs fine, no errors are generated. However, on the browser the default EmptyMessage always displays. What could be going on to cause this?
WebsiteDocumentationID.Value = Convert.ToString(reader["webdocID"]);
WebsiteDocumentationPageTitle.Text = Convert.ToString(reader["webdocPageTitle"]);
WebsiteDocumentationFileEditor.Content = Convert.ToString(reader["webdocContent"]);
WebsiteDocumentationParentID.Value = parentID = reader["webdocParentID"].ToString();
WebsiteDocumentationParent.Text = ""; // by default empty out the Parent name
if (parentID != "")
RadTreeView RadTreeView2 = (RadTreeView)WebsiteDocumentationParent.Items.FindControl("RadTreeView2");
RadTreeNode foundNode = RadTreeView2.FindNodeByValue(parentID);
if (foundNode != null)
foundNode.Selected = true;
WebsiteDocumentationParent.Text = foundNode.Text;