Hi,
I have a treeList (Q3 2011) with multi column sorting enabled.
The first column is initially sorted:
I have additional columns which I want to sort ("Name" and "Group") manually.
For example I have the following tree with 3 columns:
Caption | Name | Group
Caption1 (this is just a grouping node)
+ C1 | a | Group1
+ C2 | b | Group1
+ C3 | c | Group1
+ C4 | | -
I remove the sort of the "Caption" column by clicking twice and add a sort (desc) to "Group" and a sort (asc) to "Name". I expect something like above, but I get:
Caption | Name | Group
Caption1
+ C2 | b | Group1
+ C1 | a | Group1
+ C3 | c | Group1
+ C4 | | -
Even if I set "Name" to "desc" it stays the same. If I set the filter just to "Name" it works (a, b, c / c, b, a).
Unfortunately I can't reproduce this with the Demo (http://demos.telerik.com/aspnet-ajax/treelist/examples/sorting/basicsorting/defaultcs.aspx ) because it doesn't have comparable data (no column has double entries).
Also, the documentation is very light regarding this topic.
Is there something else I have to do to get this to work?
Thanks!
I have a treeList (Q3 2011) with multi column sorting enabled.
m_treeList.AllowSorting =
true
;
m_treeList.AllowMultiColumnSorting =
true
;
The first column is initially sorted:
if
(!Page.IsPostBack)
{
TreeListSortExpression sort =
new
TreeListSortExpression();
sort.FieldName =
"Caption"
;
sort.SortOrder = TreeListSortOrder.Ascending;
m_treeList.SortExpressions.Add(sort);
}
I have additional columns which I want to sort ("Name" and "Group") manually.
For example I have the following tree with 3 columns:
Caption | Name | Group
Caption1 (this is just a grouping node)
+ C1 | a | Group1
+ C2 | b | Group1
+ C3 | c | Group1
+ C4 | | -
I remove the sort of the "Caption" column by clicking twice and add a sort (desc) to "Group" and a sort (asc) to "Name". I expect something like above, but I get:
Caption | Name | Group
Caption1
+ C2 | b | Group1
+ C1 | a | Group1
+ C3 | c | Group1
+ C4 | | -
Even if I set "Name" to "desc" it stays the same. If I set the filter just to "Name" it works (a, b, c / c, b, a).
Unfortunately I can't reproduce this with the Demo (http://demos.telerik.com/aspnet-ajax/treelist/examples/sorting/basicsorting/defaultcs.aspx ) because it doesn't have comparable data (no column has double entries).
Also, the documentation is very light regarding this topic.
Is there something else I have to do to get this to work?
Thanks!