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:
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??
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??