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

want to display all but a specific firm on the dropdown

1 Answer 11 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Padam
Top achievements
Rank 1
Padam asked on 26 Jan 2015, 05:16 PM
function ConfirmMigrate(e){
                var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
                $("#window").data("kendoWindow").content(detailsTemplate(dataItem));
               // var name = dataItem.SubscriberFirmName;
                 $('#Subscribers').kendoDropDownList();
                var dropDown = $("#Subscribers").data("kendoDropDownList");
                var itemToRemove = dropDown.dataSource.at(0);// displays all but the first Subscriber.
                dropDown.dataSource.remove(itemToRemove);
    
I would like to display all but a specific firm on the dropdown. In my case it would be the name.
At the moment , drop down displays all but first subscriber on the table but I would like to pass the name of the firm as a parameter  and do not include the name in the drop down.  

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 28 Jan 2015, 11:47 AM

Hello Padam,

If you want to remove an item from the dataSource, you can do it like this:

http://dojo.telerik.com/@Kiril/IvOQe

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Padam
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or