Remove duplicate items in dropdown list

2 posts, 0 answers
  1. Sha
    Sha avatar
    4 posts
    Member since:
    Mar 2014

    Posted 30 Mar 2015 Link to this post

    Hi,


    I have a dropdown list binding to a datasource with duplicate records. Is there any way I  can remove the duplicate items in the dropdown list? I don't want to remove the duplicate records in the datasource because it is shared by a grid. Thanks.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 01 Apr 2015 Link to this post

    Hello Sha,

    The DropDownList widget renders the content of the underlying data source. That being said, the only way to remove the duplicate items is to modify the data source. If you do not want to modify the grid's data source, then you will need to use a separate data source for the dropdownlist and filter it in order to remove the duplicate items.

    Let me know if something is not clear.

    Regards,
    Georgi Krustev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

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