TreeView disable horizonal scrollbar

0
0

Is it possible to disable the horizontal scrollbar for the TreeView?

So that the node text can be truncated with a ellipsis (or word wrapped).

I played around with css with no luck.

 

Best regards

Daniel

  • You must to post comments
0
0

Hello,

This feature is not supported. There is no automatic wrapping or ellipsis truncation for a TreeView.

As an alternative, you can set AllowHtml true and put multiline text in a node.

For example:
treeView1.Nodes[0].AllowHtml = true;
treeView1.Nodes[0].Text = "This very long text has <br> breaks because it is too <br>long to fit otherwise.";


-Julie

  • Daniel Hüttenberger
    Sad. HTML break is good if will set the tree view witdh to a fixed value. . But users may change the width of the tree view. Oh, you have different devices with different width.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.