This is a migrated thread and some comments may be shown as answers.

How to avoid scroll on treeview

3 Answers 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
pnr
Top achievements
Rank 1
pnr asked on 29 Sep 2008, 09:52 AM
Isn’t it possible to disable scroll on the treeview. I like to expand vertical and move the other elements on the side. On the horizontal I like to set a width and the values in the node shall break if they are too long.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Sep 2008, 10:38 AM
Hi pnr,

You can use the style property of the treeview (don't set Width or Height)

<telerik:RadTreeView style="overflow-x:auto;width:300px">

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
pnr
Top achievements
Rank 1
answered on 29 Sep 2008, 11:24 AM

Hi and thanks for your answer but I can’t make I work:

I have got the following code:


<radT:RadTreeView  
    ID="venstremenu_rad"   
    Skin="venstremenu"   
    runat="server"   
    style="overflow-x:auto;width:150px"   
    ShowLineImages="false"                               ImagesBaseDir="~/Images/NoLineImages/Images/">  
</radT:RadTreeView> 

And it render like this:

http://www.proff-art.dk/images/menu.jpg

 

 

 

0
Atanas Korchev
Telerik team
answered on 29 Sep 2008, 01:08 PM
Hello pnr,

Which version of RadTreeView are you using? You have posted in the "RadTreeView for ASP.NET Ajax" forum while it looks as if you are using RadTreeView classic. Try this workaround for RadTreeView classic:

                <div style="width:100px;overflow-x:auto;overflow-y:hidden">
                <rad:RadTreeView
                    ID="RadTree1"
                    runat="server"
                    ShowLineImages="false"
                    style="overflow:visible;"
                    >
                     </rad:RadTreeView >
                 </div>
Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
pnr
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
pnr
Top achievements
Rank 1
Share this question
or