This is a migrated thread and some comments may be shown as answers.

Controlling sort order in RadTreeView with an Object Data Source

1 Answer 96 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 29 Aug 2008, 08:12 PM
I'm using a treeview bound to an object data source which calls a stored proc with an order by in the select statement. It doesn't look like I'm able to control the display order of items within the same level. Any tips on how to do that?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Sep 2008, 04:43 PM
Hello Brian,

You could try ordering by two columns - the ParentID and Text column e.g.:

SELECT      id, parentId, Text
FROM         Links
ORDER BY parentId, Text

This would sort the nodes in ascending order.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Brian
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or