Hi,
How can I limit the size of a treeview on a webform so the user can scroll
on its page.
I've allready placed the control in a DIV like:
<div style="OVERFLOW :auto; WIDTH:100%; HEIGHT:140px">
<asp:TreeView style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP:
0px" Height="200px" id="TreeView1" runat="server" ImageSet="XPFil eExplorer"
NodeIndent="15" Width="176px" ShowLines="True ">
<ParentNodeStyl e
Font-Bold="False"></ParentNodeStyle >
<HoverNodeSty le ForeColor="#666 6AA"
Font-Underline="True "></HoverNodeStyle>
<SelectedNodeSt yle BackColor="#80F FFF"
HorizontalPaddi ng="0px" VerticalPadding ="0px" Font-Underline="Fals e"
BorderStyle="So lid"></SelectedNodeSty le>
<NodeStyle NodeSpacing="0p x" HorizontalPaddi ng="2px"
ForeColor="Blac k" VerticalPadding ="2px" Font-Size="8pt"
Font-Names="Tahoma"> </NodeStyle>
</asp:TreeView>
</div>
but nothing happens, the entire list is shown and visible on the webpage
thanx
ton
How can I limit the size of a treeview on a webform so the user can scroll
on its page.
I've allready placed the control in a DIV like:
<div style="OVERFLOW :auto; WIDTH:100%; HEIGHT:140px">
<asp:TreeView style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP:
0px" Height="200px" id="TreeView1" runat="server" ImageSet="XPFil eExplorer"
NodeIndent="15" Width="176px" ShowLines="True ">
<ParentNodeStyl e
Font-Bold="False"></ParentNodeStyle >
<HoverNodeSty le ForeColor="#666 6AA"
Font-Underline="True "></HoverNodeStyle>
<SelectedNodeSt yle BackColor="#80F FFF"
HorizontalPaddi ng="0px" VerticalPadding ="0px" Font-Underline="Fals e"
BorderStyle="So lid"></SelectedNodeSty le>
<NodeStyle NodeSpacing="0p x" HorizontalPaddi ng="2px"
ForeColor="Blac k" VerticalPadding ="2px" Font-Size="8pt"
Font-Names="Tahoma"> </NodeStyle>
</asp:TreeView>
</div>
but nothing happens, the entire list is shown and visible on the webpage
thanx
ton
Comment