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

Node text Wrap

3 Answers 163 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chathuranga
Top achievements
Rank 1
Chathuranga asked on 19 Apr 2008, 05:37 AM
Dear Telerik,

Currently by adding style="white-space:normal" to a treeview or node i am able to wrap the text but not as desired. It wraps with no indentation at all.

Example
 Parent node text 1111111111111
 1111111111111111

        Child node 11111111111111
 1111111111111111

        Child node 22222222222222
 222222222222222222222222222

What i require is when node text is wrapped to have indentation so the user can still see the links and its clear and visually pleasing as
 Parent node text 1111111111111
 1111111111111111

        Child node 11111111111111
        1111111111111111

        Child node 22222222222222
        22222222222222222222222
        2222


I am using RadControls_Q3_2007_SP1_dev version currently. Can this be done if so how?

Regards
Chathuranga

3 Answers, 1 is accepted

Sort by
0
brewerdc
Top achievements
Rank 1
answered on 29 Apr 2008, 01:39 PM
I'm having this exact problem.  I'm able to wrap the text but the text wraps to align with the top-most node.  I need it to align with its own text above it.

Thanks!
0
Simon
Telerik team
answered on 09 May 2008, 01:21 PM
Hi brewerdc,

Unfortunately, this cannot be done with the classic version of RadTreeView.

On the other hand, RadTreeView for ASP.NET AJAX will successfully apply the style and the desired effect will be achieved.

P.S. This thread has been moved to the "RadTreeView for ASP.NET" forum as it refers to the classic version of the control.

Greetings,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Moon
Top achievements
Rank 2
answered on 12 Aug 2009, 06:51 PM
I have the Ajax version of this control and although it wraps, it is not indenting. In fact, the second and additional lines are outdented to the left as described in the user's original post.

I'm using 3.5 framework and 2009.2.701 - the latest version as of the time of this post.

I found this post:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/word-wrap-amp-icon-issue.aspx

Seems that it should have worked without me having to alter the styles? Shouldn't it be built-in?

Thanks.



Tags
TreeView
Asked by
Chathuranga
Top achievements
Rank 1
Answers by
brewerdc
Top achievements
Rank 1
Simon
Telerik team
Moon
Top achievements
Rank 2
Share this question
or