Ram
Ram

Reputation: 59

How to loop through Kendo Dropdown

I have filled a KendoDropdown with few data.

Now when I give an input in the Kendo textbox and click a button, I should be able to loop through the items in the dropdown to check if the input value is already exist in the Dropdown. Please any one tell me how can I achieve this in jquery?. Any sample code?.

Thanks in advance.

Upvotes: 2

Views: 3700

Answers (1)

Mario Garcia
Mario Garcia

Reputation: 643

$($("#dropDownName").data("kendoDropDownList").dataItems()).each(function () {
        if (this.Value == 10) { //use your logic here
            //do your stuff
        }  
    });

Upvotes: 3

Related Questions