Hi,
I am working with the treeview control and binding it dynamically using the treeview_TreeNodePopulate method.
The code works perfectly fine and treeview behaves as it has to.
However, I am facing one annoying issue in the display of the treeview, the last node and its child do not align properly with the top nodes. Check the image below for better understanding,
http://dotnetspider.com/attachments/Forums/235454-281550-tree.GIF
Note: I have blocked the text of options deliberately.
So as you can notice that the child nodes of Level 3 are not getting aligned with that of Level 1 and 2.
Following is my asp code,
<asp:TreeView ID="tvMaster" runat="server" RootNodeStyle-CssClass="rootNode" NodeStyle-HorizontalPadding="2px"
NodeStyle-VerticalPadding="2px" NodeIndent="1" NodeWrap="true" ShowLines="true"
CssClass="tree">
<Nodes>
<asp:TreeNode Text="School Level" PopulateOnDemand="true" SelectAction="Expand">
</asp:TreeNode>
</Nodes>
</asp:TreeView>
In the code behind, PopulateNode event fires for every node and I bind the child nodes for that node dependant on the Business logic.
Any inputs on this issue are appreciated.
Thanks,
Pranil