Sort select List backing Multiselect

1 Answer 19 Views
MultiSelect
Christoph
Top achievements
Rank 1
Christoph asked on 04 Mar 2022, 06:57 AM

Hi,

I'm trying to "miss-use" a Kendo-Multiselect to order some items by order of selection. Meaning I order the select-items in the current order before initializing the Multi-Select and when some items are changed I would like to re-order them according to the current order in the multi-select.

Is there an easy way to achieve that?

I already saw HERE how to get the items via JS (in the correct order), but bevor I start using some custom JS to update the select I would like to ask if there is an easier solution?

Or is there even a more suitable control available? I have <10 items where the user should be able to define the order of all selected items (so it is selection and order, e.g. out of 1,2,3,4,5 the user can e.g. choose 3,2,4 or 3,4,2).

regards,
Christoph

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 08 Mar 2022, 11:37 AM

Hi Christoph,

I am not sure if I fully understand the scenario in question. Do you need to allow reordering of selected items in the MultiSelect? If that is the case, here is a forum thread that would be useful:

https://www.telerik.com/forums/how-to-sort-the-selected-items-of-multiselect

The above focuses on sorting selected items but you could handle the change event in your scenario too. This way you would achieve the required result.

As per an alternative component, I do not think I could offer you such.

Regards,
Veselin Tsvetanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
MultiSelect
Asked by
Christoph
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or