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
    Admin
    Alexander Popov avatar
    1416 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.

    Regards,
    Alexander Popov
    Telerik
     

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top