Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
public
class
TreeViewComparer : IComparer<RadTreeNode>
{
int
Compare(RadTreeNode x, RadTreeNode y)
if
(x.Parent !=
null
&& x.Parent == y.Parent && x.Parent.Name ==
"YourNode"
)
return
Comparer<
string
>.Default.Compare(x.Name, y.Name);
}
0;
this
.radTreeView1.TreeViewElement.SortOrder = SortOrder.Ascending;
.radTreeView1.TreeViewElement.Comparer =
new
TreeViewComparer();
I hope this helps.