Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
I have a telerik:RadTreeNodeBinding within a telerik:RadComboBox.
Is there a way to format the parent node in bold text of a databound radtreeview?
Thanks,
Roger
I've found a solution:
Added the foreach code after the Databind(0. radTreeView.DataTextField = "Text"; radTreeView.DataValueField = "ID"; radTreeView.DataFieldID = "ID"; radTreeView.DataFieldParentID = "GroupIds"; radTreeView.DataSource = siteData; radTreeView.DataBind(); foreach (var itm in radTreeView.Nodes.Cast<RadTreeNode>().Where(itm => itm.Nodes.Count > 0)) { itm.Font.Bold = true; }
radTreeView.DataTextField = "Text";
radTreeView.DataValueField = "ID";
radTreeView.DataFieldID = "ID";
radTreeView.DataFieldParentID = "GroupIds";
radTreeView.DataSource = siteData;
radTreeView.DataBind();
foreach (var itm in radTreeView.Nodes.Cast<
RadTreeNode
>().Where(itm => itm.Nodes.Count > 0))
{
itm.Font.Bold = true;
}