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

How to do text wrapping in the code behind

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stavros
Top achievements
Rank 1
Stavros asked on 22 Jun 2009, 07:52 AM
I have read in RadControlsAJAXCourseware.pdf that I can do text-wrapping manually using style="white-space: normal;" for a node with long text.
How can I do that in the code behind for all nodes (checking with a loop for example every node text if it is beyond a specific length and applying the style).
Thank you very much!

1 Answer, 1 is accepted

Sort by
0
Stavros
Top achievements
Rank 1
answered on 22 Jun 2009, 09:08 AM
It was simple!
All I had to do is add this style to the parent treeview!(The helping docs have an example on this)
Tags
TreeView
Asked by
Stavros
Top achievements
Rank 1
Answers by
Stavros
Top achievements
Rank 1
Share this question
or