Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Last Node
posted

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.

 

Parents
  • 69832
    Suggested Answer
    Offline posted

    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.

Reply Children