This is a migrated thread and some comments may be shown as answers.

Remove duplicate items in dropdown list

1 Answer 515 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Sha
Top achievements
Rank 1
Sha asked on 30 Mar 2015, 02:11 PM
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.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 01 Apr 2015, 08:31 AM
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.

 
Tags
DropDownList
Asked by
Sha
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or