Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Suresh on Jul 11, 2007 09:46
open dhtmlx forum
Wrapping text in tree node item within DIV

Hi,

How to wrap my tree node text within my DIV width? The style overflow:auto brings the auto scroll bar in my tree view. But I want to wrap the text of tree node item.

Also I need to give the back ground color for each selected tree node item.

Any suggestions please..

Thanks in advance,

Suresh
Answer posted on Jul 11, 2007 19:15
Tree supports multiline items, auto wrappiing can be enabled by
    tree.enableMultiLineItems(true);
or
    tree.enableMultiLineItems(width);

>>Also I need to give the back ground color for each selected tree node item.
You can adjust the style of selected node in dhtmlxGrid.css
    .selectedTreeRow{

Answer posted on Jan 11, 2008 14:41
This is not working in Internet Explorer 7:

>> tree.enableMultiLineItems(true);

no effect - Lines are not wraped, and there are both the horizontal and the vertical scrollbar

>> tree.enableMultiLineItems(width);

no effect - Lines are wraped, but there are both the horizontal and the vertical scrollbar anyway
Answer posted by Support on Jan 14, 2008 03:58
http://dhtmlx.com/docs/products/dhtmlxTree/samples/appearance/pro_multi_line.html

It works in both FF and IE
Please beware that if text has some long words without white-spaces - such words will not be breaked in few lines
Answer posted by Inga (Support) on Nov 30, 2014 15:55

The information connected with dhtml date picker and excel download forum also can help you, so please check it too.