The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I''m trying to sort a TreeViewAdv. I implemented IComparable on all of my Tags and set
//We set a default order in BaseStyles. This needs to be changed for children of Feeds
channelTree.StandardStyle.SortType = TreeNodeAdvSortType.Tag;
channelTree.StandardStyle.SortOrder = SortOrder.Ascending;
but nothing seems to happen (CompareTo never seems to get called, even).
Thanks
ADAdministrator Syncfusion Team March 15, 2004 10:48 AM UTC
Hi Dan,
You could use the code given below for this purpose :
channelTree.StandardStyle.SortOrder = SortOrder.Ascending;
channelTree.StandardStyle.SortType = TreeNodeAdvSortType.Tag;
channelTree.StandardStyle.Sort();
Please take a look at the TreeViewAdvSorting demo sample in the directory ...\Syncfusion\Essential Suite\Tools\Samples\Tree Package\TreeViewAdvSorting which shows how this can be done. Let me know if you need further assistance.
Regards,
Guru Patwal
Syncfusion, Inc.
ADAdministrator Syncfusion Team March 15, 2004 06:25 PM UTC
Thanks -- I thought it automatically kept things sorted. You might clarify this in Section 4.5.2.2.4 of the manual.
ADAdministrator Syncfusion Team March 15, 2004 07:07 PM UTC
Hi Dan,
Thanks for the update. I will convey your suggestion regarding documention to the development team. We appreciate your continued interest in Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.