I have a lazy load tree Displays the first 100 records with a More(300)...Node when you click on the more node, the next 100 records get loaded.
What I want to do is have the more node to always be the last child node. But sorting the tree always puts it alphabetically.
Create a class that implements IComparer, and assign an instance of that class to the UltraTree.Override.SortComparer property (or UltraTreeNodeColumn.SortComparer if you are using one of the non-standard ViewStyles). In your implementation, it is business as usual for all nodes except this "More(300)" node; when that node is being compared to another, always return a value that puts that node last in the sort order.
Thanks yes that worked perfectly...
One more question:
Can I highlight a partial description.
If I were to do a search on the tree, I would like to highlight their search string ie: search for 'ea*'
highlighting "search"
Yes, what you describe here is possible using the FormattedLinkEditor.
Example:this.ultraTree1.Override.Editor = new Infragistics.Win.FormattedLinkLabel.FormattedLinkEditor(false);this.ultraTree1.Nodes[0].Text = "s<b>ea</b>rch";
Perfect...thank you :)