Question : Trouble setting treeview width

Can't seem to be able to get a fixed width on .net Treeview. Have width attribute set as shown below, also tried asp:panel and CSS div, but it just runs outside the box.

Anyone know how to accomplish this?
1:
2:
3:
4:
5:
<asp:TreeView ID="TreeView1" runat="server" MaxDataBindDepth="3" ontreenodepopulate="TreeView1_TreeNodePopulate" Width="100px" NodeIndent="7">
        <Nodes>
            <asp:TreeNode PopulateOnDemand="True" ></asp:TreeNode>
        </Nodes>
    </asp:TreeView>

Answer : Trouble setting treeview width

if your node text length goes out of 100 px length themn try using NodeWrap property:

see:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.nodewrap.aspx
Random Solutions  
 
programming4us programming4us