TreeView Flow Direction

2 posts, 0 answers
  1. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 13 Jul 2011 Link to this post

    Hello,

    Looking for input on FlowDirection for a RadTreeView. My limitation is that I have to stay at 3.5 framework and Telerik version 2010.1.519.35 (existing project). My RadTreeView works nicely but of course has a vertical flow and the UX person wants it to flow horizontal..so forgive the lame ASCII art something like this:

    WRONG:
    + Node1
    - Node2
        Sub2
        Sub2a
        Sub2b
    +Node3

    Right:
    +Node1                -Node2                    +Node3
                                    Sub2
                                    Sub2a
                                    Sub2b

    The only solution I have been able to think of is to implement 3 trees on different panels and split the data up so it binds to the tree I want it to.....this seems lame so I am hoping someone can enlighten me on a better way.

    Thanks
    JB
  2. Plamen
    Admin
    Plamen avatar
    3056 posts

    Posted 18 Jul 2011 Link to this post

    Hi John Bonner,

    Here is one way you can make the first level of nodes to show horizontal and all the others like usual:
    <style type="text/css">
           .rtUL .rtLI
           {
               float: left;
           }
              .rtUL .rtUL .rtLI
           {
               float:left;
           }
            
           .rtUL .rtLI .rtLI
           {
               float:none;
           }
           
       </style>

    Hope this will be helpful.

    Regards,
    Plamen Zdravkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top