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

[Solved] treeview alignment

1 Answer 189 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mary
Top achievements
Rank 1
mary asked on 01 Mar 2010, 10:50 PM
I have 3 treeviews on one page.  How can I get them to display horizontally instead of vertically.  I tried the usual things, uisng divs with display inline, but am having no luck.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Mar 2010, 12:02 PM
Hello mary,

You should set Width property to the treeviews and also apply "float: left" css style to them like this:

<telerik:radtreeview id="RadTreeView1" runat="server" Width="200px">
    <Nodes>
        <telerik:RadTreeNode Text="root">
            <Nodes>
                <telerik:RadTreeNode Text="node 1" />
                <telerik:RadTreeNode Text="node 2" />
                <telerik:RadTreeNode Text="node 3" />
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
</telerik:radtreeview>


Best regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
mary
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or