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

Requested feature: SortField property

0 Answers 10 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
bemara57
Top achievements
Rank 1
bemara57 asked on 02 Sep 2008, 11:05 AM
Instead of messing with the SQL queries and parameters to sort a result, it would be extremely functional if there was a SortField property for the RadTreeView. For example, if I wanted to sort by the class property "Name", I should be able to do this:

RadTreeView1.DataSource = CreateTestTable();  
RadTreeView1.DataTextField = "Name";  
RadTreeView1.DataValueField = "CategoryID";  
RadTreeView1.DataFieldID = "CategoryID";  
RadTreeView1.DataFieldParentID = "ParentID";  
RadTreeView1.SortField = "Name";  
RadTreeView1.DataBind();  

Notice the line before the DataBind: RadTreeView1.SortField = "Name". This way I can sort dynamically without changing the SQL queries or parameters. What do you think??

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
bemara57
Top achievements
Rank 1
Share this question
or