We do not want or have text wrapping for the node text.
However, if there is not enough space for the text, it gets moved down underneath the expand symbol.(when expanded) and if collapsed it does not move down but an emply line gets inserted between the collapsed node and the next node underneath it.
Is there a way to prevent this? As we do not want the text to wrap, we simple want the text to remain to the right, regardless of whether it is collapsed or expanded AND without an empty space underneath it?
Thanks.
Hello JJB,
It’s indeed related to the scrollbar not appearing. I tested this by setting overflow:hidden for all the items and that reproduces the mentioned misbehavior.
I suggest you wrap the items text in this case. For example by setting a css class for the tree nodes:
.wrap
{
white-space:pre-wrap;
}
Let me know if I can further assist you in any way.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hi,
Thanks for the sample. Our situation is quite different in that (for a start) we do not want a horizontal scrollbar, because we have a splitter bar. (implemented using a table and capturing appropriate mouse events, rather than the infragistics control) I'm not sure if the behaviours I reported are simply the result of not having the horizontal scrollbar or caused by some other complexity in our implementation? Are you able to confirm if this behaviour happens in a simple case of disabling the horizontal scrollbar? If not then I will try an isolate the problem.
Regards.
Hello JJB ,
i'm just following up to see whether you need any further assistance with this issue.
If so please let me know.
Thank you for posing in our forum.
Usually when the text of the node exceed the container a scrollbar appears to let you scroll left or right.
Do you use a custom css class for the nodes?
Please refer to the attached sample with the tree with default settings and let me know if you’ve set the WebDataTree differently.