AllowMultiColumnSorting doesn't work as expected

3 posts, 0 answers
  1. JP
    JP avatar
    120 posts
    Member since:
    Aug 2011

    Posted 23 Mar 2012 Link to this post

    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. Martin
    Admin
    Martin avatar
    811 posts

    Posted 28 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin
    Admin
    Martin avatar
    811 posts

    Posted 29 Mar 2012 Link to this post

    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.
Back to Top