Multiselect grouping do not keep the order of items.

4 posts, 0 answers
  1. Dani
    Dani avatar
    55 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
    3707 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. Kendo UI is VS 2017 Ready
  4. Dani
    Dani avatar
    55 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?

     

     

     

  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 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!
     
Back to Top
Kendo UI is VS 2017 Ready