Ed Staffin
Top achievements
Rank 1
Ed Staffin
asked on 17 Nov 2008, 05:08 PM
Hi,
Is there a way to turn off scrollbars appearing in the treeview? For some reason, they are appearing in a case where I don't want them. I have a tree embedded in a splitter pane and I never want the tree to scroll.
Thanks ... Ed
Is there a way to turn off scrollbars appearing in the treeview? For some reason, they are appearing in a case where I don't want them. I have a tree embedded in a splitter pane and I never want the tree to scroll.
Thanks ... Ed
4 Answers, 1 is accepted
0
Hello Ed Staffin,
If you don't set the Height or Width of RadTreeView no scrollbars should appear. Alternatively you can try setting the overflow css setting to hidden:
<telerik:RadTreeView style="overflow:hidden">
Regards,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
If you don't set the Height or Width of RadTreeView no scrollbars should appear. Alternatively you can try setting the overflow css setting to hidden:
<telerik:RadTreeView style="overflow:hidden">
Regards,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ed Staffin
Top achievements
Rank 1
answered on 17 Nov 2008, 05:17 PM
Height and width of the treeview are not currently set as you can see from the snippet below. It is, however inside a pane of a splitter. Could that have something to do with it? One other thought, could the skin be affecting it?
Thanks ... Ed
Thanks ... Ed
<telerik:RadSplitter ID="RadSplitter1" runat="server" LiveResize="True" Skin="Web20" Width="100%" Height="100%" >
<telerik:RadPane ID="RadPane1" Runat="server" Width="210px" >
<telerik:RadTreeView ID="MainMenu" runat="server" Skin="WebBlue" OnClientNodeClicking="SaveSelectedNodes">
<CollapseAnimation Type="OutQuint" Duration="100">
</CollapseAnimation>
<ExpandAnimation Duration="100">
</ExpandAnimation>
</telerik:RadTreeView>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar1" Runat="server" CollapseMode="Forward" />
<telerik:RadPane ID="RadPane2" Runat="server" >
<asp:ContentPlaceHolder ID="cntPageBody" runat="server">
</asp:ContentPlaceHolder>
</telerik:RadPane>
0
Hi Ed Staffin,
I tried the page which you pasted but no extra scrollbars appeared. Only the ones rendered by the splitter pane which contains the treeview. Perhaps you can use Firebug to find out which element is causing the extra scrollbars. Just try to pick it with the "Inspect" firebug tool and the element's CSS would appear in the right window of firebug. Look for "overflow:auto" which is causing the scrollbars.
Regards,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I tried the page which you pasted but no extra scrollbars appeared. Only the ones rendered by the splitter pane which contains the treeview. Perhaps you can use Firebug to find out which element is causing the extra scrollbars. Just try to pick it with the "Inspect" firebug tool and the element's CSS would appear in the right window of firebug. Look for "overflow:auto" which is causing the scrollbars.
Regards,
Albert
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ed Staffin
Top achievements
Rank 1
answered on 17 Nov 2008, 07:00 PM
Hi,
It must be on the treeview because when I added style="overflow:hidden" to the control the problem went away.
I still don't understand why they showed in the first place.
Thanks ... Ed
It must be on the treeview because when I added style="overflow:hidden" to the control the problem went away.
I still don't understand why they showed in the first place.
Thanks ... Ed