tree view; show lines property is not working properly
Posted
by Jibu P C
on Stack Overflow
See other posts from Stack Overflow
or by Jibu P C
Published on 2010-03-15T07:56:48Z
Indexed on
2010/03/15
7:59 UTC
Read the original article
Hit count: 344
Hii,
I am a bigginer in using tree view control. I am using tree view control to make a simple tree like structure. But when i use show lines property it is not connecting to the root node. The code which i have written is as follows.
<asp:TreeView ID="treeSettings" runat="server" ImageSet="Simple2" NodeIndent="15"
ShowLines="True">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle BackColor="#CCCCCC" BorderColor="#888888" BorderStyle="None" Font-Underline="True" />
<SelectedNodeStyle BackColor="#FFCCCC"
Font-Underline="False" HorizontalPadding="0px" VerticalPadding="1px"
Height="0px" />
<Nodes>
<asp:TreeNode Text="Settings" Value="Settings">
<asp:TreeNode Text="Edit Task" Value="Edit Task"></asp:TreeNode>
<asp:TreeNode Text="Assign" Value="Assign a Resource"></asp:TreeNode>
<asp:TreeNode Text="Task Status" Value="Task Status"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
NodeSpacing="1px" VerticalPadding="0px" Width="100px" ChildNodesPadding="0px" />
<LeafNodeStyle NodeSpacing="0px" />
</asp:TreeView>
enter code here`
© Stack Overflow or respective owner