Multiselect grouping do not keep the order of items.

8 posts, 0 answers
  1. Ace
    Ace avatar
    58 posts
    Member since:
    Jan 2009

    Posted 06 Nov 2015 Link to this post

    Hi,

    I using the Kendo Multiselect with grouping option.  I have to show the items in the order in which I received them.  When I apply the group, the order is altered.

    See the example  http://dojo.telerik.com/uNaQu.

    In this example, Maria Anders is the first name of the non-grouped list.  Yet she is the second name in the group "Germany" in the grouped list.  

    The order should remain the same, but this is not what happens.

     

     

     

     

     

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3725 posts

    Posted 10 Nov 2015 Link to this post

    Hello Dani,

    The MultiSelect widget uses the DataSource component to group the passed data. It will be grouped and sorted ascending by default.

    The only way to keep the group order is to group the data on the server. For this you will need to enable serverGrouping option of the datasource.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Ace
    Ace avatar
    58 posts
    Member since:
    Jan 2009

    Posted 10 Nov 2015 in reply to Georgi Krustev Link to this post

    Hi,

    I don't want keep the groups order, but I want keep the order of items inside groups.  Why sorting applied to the ​items is not preserved after grouping?

     

     

     

  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3725 posts

    Posted 12 Nov 2015 Link to this post

    Hello Dani,

    The DataSource grouping functionality is designed to sort the items, before group them. This is built-in behavior, which cannot be modified. That is why I mentioned that you will need to use server grouping. Thus you will have a full control over the grouping.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Ricky
    Ricky avatar
    18 posts
    Member since:
    Aug 2016

    Posted 29 Sep in reply to Georgi Krustev Link to this post

    Hello!

    Is this still the case with 2017 R3? And why doesn't it work if a set grouping by field A asc and sorting to field A asc, field B asc (so sorting mirrors grouping)?

  6. Nencho
    Admin
    Nencho avatar
    1665 posts

    Posted 03 Oct Link to this post

    Hello Ricky,

    Yes, the functionality in question should be achieved using the server grouping, as my colleague had previously described.  

    Regards,
    Nencho
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  7. Ricky
    Ricky avatar
    18 posts
    Member since:
    Aug 2016

    Posted 03 Oct Link to this post

    That's unexpectedly disappointing. Is there already a UserVoice / feature request regarding client-side group+sort support?
  8. Nencho
    Admin
    Nencho avatar
    1665 posts

    Posted 05 Oct Link to this post

    Hello Ricky,

    At the time being, there is not such feature request logged in our public portal. However, please feel free to describe it and log it:

    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

    Hence, it could be evaluated, voted for, and base on the demand - implemented.

    Regards,
    Nencho
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top