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

Wrap and expansion of RadTreeView

5 Answers 157 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jaimin
Top achievements
Rank 1
Jaimin asked on 14 Jul 2008, 11:40 AM
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

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jul 2008, 12:33 PM
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.
0
Jaimin
Top achievements
Rank 1
answered on 21 Jul 2008, 02:23 PM
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
0
LeBear
Top achievements
Rank 1
answered on 17 Sep 2008, 07:51 PM

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.

0
Mikael
Top achievements
Rank 1
answered on 23 Apr 2009, 04:06 PM
Any progress on this? I am having the same requirements.

Thanks!
/Fredrik
0
Jaimin
Top achievements
Rank 1
answered on 24 Apr 2009, 05:57 PM
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
Tags
TreeView
Asked by
Jaimin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jaimin
Top achievements
Rank 1
LeBear
Top achievements
Rank 1
Mikael
Top achievements
Rank 1
Share this question
or