Keeping selected items

2 posts, 0 answers
  1. Brad
    Brad avatar
    1 posts
    Member since:
    Feb 2014

    Posted 02 May 2014 Link to this post

    Is there any way to prevent the removal of an item from the select list when a user selects it and maintain the order of the select list?
  2. Alexander Popov
    Alexander Popov avatar
    1434 posts

    Posted 06 May 2014 Link to this post

    Hi Brad,

    I already answered to this query in support ticket #816306. I will post my reply here as well, in case anyone else stumbles on the same scenario:
    Although this behavior is not supported out of the box it could be achieved using a custom solution. For example:
    • Subscribe to the MultiSelect's open event
    • Once the event is triggered get the instance of the popup list
    • Find all li elements and set their display CSS attribute to its default value (selected items' display is set to none by the widget)

    Here is an example illustrating the above approach - I hope it helps.

    Alexander Popov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top