I tried to look for this in the old forums, but they don't seem to be working. All I get is a message saying "Program fault - command not performed". Anyway, does anyone know how to do this? I'm using NetAdvantage 2007 Volume 2 for ASP.Net.
Thanks,
Mike
Mike,
I would report this behavior to Infragistics Developer Support.
Still no reply on this question? I am having the same difficulty. How do you wrap the Node text using UltraWebTree? It is a basic property in the underlying .Net tree control.
Any advice for why I can't seem to find this property?
Thanks in advance,
Dan
Hi I am using Infragistics treeview control, i need to wrap the text of a node where the text length is more than 20 character, but i am not able to find any property or method which does support my job, I would request you all infra-champs to give a solution, Thanks a lot in advance.
Arindam
I've solved this issue in two steps. One is needed for IE 6, and the other for Firefox.
Step 1.
Assign Node Text using method:
private void SetNodeText(Node n, string text) { string[ parts = text.Split(new char[ { ' ' }); StringBuilder sb = new StringBuilder(); foreach (var p in parts) { sb.Append(Server.HtmlEncode(p)); sb.Append(" <wbr>"); } n.Text = sb.ToString(); }
Step 2.
Call it when creating new nodes AND on NodeSelectionChange - for every node. I needed to update every node on selection change, because otherwise it lost this style in Firefox. In IE it was OK.
private void SetNodeStyle(Node node) {
//// YOUR STYLE GOES HERE AND....
node.Style.CustomRules = "white-space: -moz-pre-wrap;"; }
The problem is caused by tag <nobr> used when rendering UltraWebTree.
Wow, that's awesome - much appreciated. I personally thought that wrapping was not possible even with additional css/javascript coding. Thanks a lot for sharing this will certainly be appreciated by a lot of people.
Hi,
I am using Ultrawebtree and I having 2 issues. will you please help me to solve?
1. I need to wrap text of the node.
2. I need to hide expander icon (+) or (-) from the tree.
I am using version 9.1.20091.1015.
I appreciate for your help.
Thanks & Regards,
mukesh
mukeshwa said:1. I need to wrap text of the node.
Did you try what I suggested in this topic above? Doesn't it work for you?
mukeshwa said:2. I need to hide expander icon (+) or (-) from the tree.
Your tree is always expanded?
You may take a look here
http://forums.infragistics.com/forums/p/15687/57215.aspx#57215
It's about hiding expand icon for root element, and it wasn't supported, but the tricks described can help in your case.
node.ShowExpand property is where i would start digging.