Hello Santiago,
If you use this comparer in the FirstLook example in the QuickStart application, you will see that the nodes are sorted in reverse order.
public class ReverseSortComparer : IComparer<RadTreeNode> |
{ |
#region IComparer<RadTreeNode> Members |
|
public int Compare(RadTreeNode x, RadTreeNode y) |
{ |
return y.Text.CompareTo(x.Text); |
} |
|
#endregion |
} |
public Form1() |
{ |
InitializeComponent(); |
this.radComboBox1.SelectedIndex = 0; |
this.radTreeView1.AllowMultiselect = true; |
|
this.SelectedControl = this.radTreeView1; |
|
this.checkImagesInFill.Text = "Highlight Node Text including its image"; |
|
this.radTreeView1.RadTreeNodeComparer = new ReverseSortComparer(); |
} |
I hope that helps. If you have any additional questions, please write us.
Kind regards,
Jordan
the Telerik team