TreeView with percentage width

2 posts, 0 answers
  1. Juergen Holzer
    Juergen Holzer avatar
    32 posts
    Member since:
    Mar 2010

    Posted 12 Dec 2012 Link to this post

    Hello!

    I've implemented the RadTreeView successfully in a RadPane, within a RadSplitter.
    But now the formatting of the TreeView is very malformed, it looks like each TreeNodeItem is beeing centered. Does anybody know a reason where this can come from?

    Here is a sample code and attached the sample outputs:

    <div style="width:700px; height:300px;">
              <rad:RadTreeView ID="TestTree" runat="server" Height="200px" Skin="Windows7" BorderWidth="3" style="float: left">
                    <Nodes>
                        <rad:RadTreeNode Text="Test1" Expanded="true" runat="server">
                            <Nodes>
                                <rad:RadTreeNode Text="Test2" runat="server">
                                    <Nodes>
                                        <rad:RadTreeNode Text="Testasdfjklö2" runat="server" >
                                        </rad:RadTreeNode>
                                    </Nodes>
                                </rad:RadTreeNode>
                                <rad:RadTreeNode Text="Test3" runat="server" >
                                    <Nodes>
                                        <rad:RadTreeNode Text="Testasfwqeradfawererdfgrthrtzh3" runat="server" style="float: left">
                                        </rad:RadTreeNode>
                                    </Nodes>
                                </rad:RadTreeNode>
                            </Nodes>
                        </rad:RadTreeNode>
                    </Nodes>
                </rad:RadTreeView>
            </div>


    Thank you very much for every help!

    Kind regards
    Juergen
  2. Juergen Holzer
    Juergen Holzer avatar
    32 posts
    Member since:
    Mar 2010

    Posted 12 Dec 2012 Link to this post

    Sorry for the post. Found the solution!

    There was a tiny <div> at the top with align=center, this brought my tree to react like this.

    regards
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top