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

AllowMultiColumnSorting doesn't work as expected

2 Answers 84 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 23 Mar 2012, 03:56 PM
Hi,

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!

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 28 Mar 2012, 04:03 PM
Hello JP,

I was able to replicate the described behavior locally and forwarded your report to our developers for further investigation. Once I have any feedback from the I will get back to you with the details.

Kind regards,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Martin
Telerik team
answered on 29 Mar 2012, 08:49 AM
Hello JP,

Our developers confirmed the described behavior is a bug in the current version of the RadTreeList component. Unfortunately, I can not provide you with exact estimate about when the problem will be fixed. However, you can follow the status of the issue in our public issue tracking system. Because of this report you can also find your Telerik points updated accordingly.

Please excuse us for any inconvenience this issue may have caused.

All the best,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeList
Asked by
JP
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or