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

wrap text in RAD tree view

1 Answer 115 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Deepesh
Top achievements
Rank 1
Deepesh asked on 19 Nov 2010, 09:00 AM
can i wrap text in RAD tree View control

1 Answer, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 19 Nov 2010, 12:26 PM
Hi Deepesh,

You can use HTML-Like formatting, but I would advise against it in this case.
Me.RadTreeView1.Nodes.Add("<html>Here is some really long text, <br>I'm going to try and make it wrap</html>")

The node renders up to two lines (one line break) but when selecting the node, only the first line text will show as highlighted and this would be very confusing for the user as to where one node text stops and the next one starts, and may cause confusion when only the first line is showing as selected.

Hope this helps
Ricahrd
Tags
Treeview
Asked by
Deepesh
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or