Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have bound the data to the tree view using dataset. Now I have even set the color of Parent Node. But unable to apply the color or style to child node after binding the data.

Please help?

.cs file code
C#
SqlDataAdapter da = new SqlDataAdapter("select * from Menu_Modules", con);
DataSet ds = new DataSet();
da.Fill(ds, "Menu_Modules");

RadTreeView1.DataSource = ds;
RadTreeView1.DataFieldID = "ID";
RadTreeView1.DataFieldParentID = "ParentID";
RadTreeView1.DataTextField = "Field_Name";
RadTreeView1.DataNavigateUrlField = "URL";
RadTreeView1.DataBind();
con.Dispose();

aspx file code
ASP.NET
<telerik:RadTreeView ID="RadTreeView1"  runat="server" Skin="Black" 
	Height="100%" Font-Size="Small" ForeColor="White" BorderStyle="None" 
	AppendDataBoundItems="True" EnableViewState="False" Font-Bold="True">
                                
<nodes>
	<telerik:RadTreeNode  runat="server" Text="Navigate Modules" 
	EnableContextMenu="False" Enabled="False" EnableViewState="False" 
	Font-Size="Small" ForeColor="White" PostBack="False">
</nodes>
Posted
Updated 2-Oct-11 3:41am
v3
Comments
André Kraak 2-Oct-11 8:34am    
Please share any relevant code with us, seeing the code might us help understand the problem you are facing.

If you wish to change your question use the Improve Question button.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900