Hi,
I have this code:
The node is selected but I don't see it cause it doesn't apply the selected style, why?
I have to click on the node to see the correct style.
(I'm using 2009.02.0701.35)
I have this code:
RadTreeView radTreeView = (RadTreeView)RadComboBox1.Items[0].FindControl("RadTreeView1"); |
IList<CoorIS.DomainObjects.Unit> units = UnitService.GetUnitsAsExpanded(PageInfo.CurrentUnitID, Guid.Empty); |
radTreeView.DataSource = units; |
radTreeView.DataTextField = "Name"; |
radTreeView.DataValueField = "ID"; |
radTreeView.DataFieldID = "ID"; |
radTreeView.DataFieldParentID = "ParentID"; |
radTreeView.DataBind(); |
RadTreeNode node = radTreeView.FindNodeByValue(PageInfo.CurrentUnitID.ToString()); |
if (node != null) |
{ |
node.ExpandParentNodes(); |
node.Selected = true; |
RadComboBox1.SelectedItem.Text = node.Text; |
} |
The node is selected but I don't see it cause it doesn't apply the selected style, why?
I have to click on the node to see the correct style.
(I'm using 2009.02.0701.35)