Turn off scrollbars?

5 posts, 0 answers
  1. Ed Staffin
    Ed Staffin avatar
    66 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2008 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 17 Nov 2008 Link to this post

    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.
  3. Ed Staffin
    Ed Staffin avatar
    66 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2008 Link to this post

    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


     

    <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>

     

  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 17 Nov 2008 Link to this post

    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.
  5. Ed Staffin
    Ed Staffin avatar
    66 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2008 Link to this post

    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
Back to Top