Wrap and expansion of RadTreeView

6 posts, 0 answers
  1. Jaimin
    Jaimin avatar
    14 posts
    Member since:
    May 2008

    Posted 14 Jul 2008 Link to this post

    Hi,

    I have divided by page into 2 sections using table and td. The first td looks like below. On click of this tree viewe 'rtv1', I want to populate another tree view of same page. Initially the rendering is coming up good but when I click on any node of 'rtv1' the width of the tree view increases which shrinks the other tree view. Also the 'wrap' is not working for the tree view. The sample code is:

    <

    div style="width:39%; height:100%; overflow:auto;">

    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="overflow:auto;">

    <tr valign="top" align="left">

    <td>

    <div style="width:100%; height:100%; overflow:auto;">

    <radT:RadTreeView ID="rtv1" runat="server" RetainScrollPosition="true" Wrap="true">

    </radT:RadTreeView>

    </div>

    </td>

    </tr>

    </table>

    </div>

    Can you please provide help?

    Thanks,
    Jaimin

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jul 2008 Link to this post

    Hi Jaimin,

    Here is a help article which explains how to wrap a TreeNode's text. Go through it and see whether it helps.
    Wrap TreeNode's text

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jaimin
    Jaimin avatar
    14 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    Hi Princy,

    The link was good and helped me but the problem is shown below. As you can see that the text of "Grand Child 1" strats from the same level as of parent if it is wrapped but I want the text to be starting just below the "Grand Child 1" as shown in the result section given below.

    Problem:

    Parent1
     - Child1
        - Grand child1 text abckjksadflashfblkajsgfiasfgiaosgfoiasgfoiagfioafgoa asdfasf
        - Grand child 2 text
        - Grand child 3
     - Child 2

    Result:

    Parent1
     - Child1
        - Grand child1 text abckjksadflashfblkajsgfiasfgiaosgfoiasgfoiagfioafgoa
           asdfasf
        - Grand child 2 text to show you how the result I'm expecting from the
           product
        - Grand child 3
     - Child 2

    Thanks and Regards,
    Jaimin Kansara
  5. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 17 Sep 2008 Link to this post

    I have to pipe in here, too. 

    When you have a list of some sort, and an item in that list wraps, the text on the wrapped portion should be indented to match the indentation of the start of the item.  (Does that make sense?)  I think this is how it should work here.

    I was able to add a style to the node for the left margin to be -3px, and it aligned ok, but it was then squished up against the lines.  I found this to be better, but not optimal.

    Telerik, please understand that while this is an issue affecting the smallest of details in presentation, I'm sure I speak for many when I say that it's the small details like this that make a site stand out over the competition.

    Thank you.

  6. Fredrik
    Fredrik avatar
    42 posts
    Member since:
    Oct 2007

    Posted 23 Apr 2009 Link to this post

    Any progress on this? I am having the same requirements.

    Thanks!
    /Fredrik
  7. Jaimin
    Jaimin avatar
    14 posts
    Member since:
    May 2008

    Posted 24 Apr 2009 Link to this post

    Hi,

    This has been fixed in the new version of telerik. If you have bought new version than you can follow the link for the details.

    http://www.telerik.com/help/aspnet-ajax/tree_tree_wrap_nodes.html

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