Ashesh Tuladhar
Ashesh Tuladhar

Reputation: 85

Kendo dropdownlist reinitialize issue

I have a dropdownlist as :

<select class="kendo-select">
    <option value=""></option>
</select>

And in JS as :

$('.kendo-select').kendoDropDownList();

How do I re-initialize the dataSource of this dropdown as I haven't used dataSource while creating the dropdown ?

I have tried adding kendoDropDownList again after a successful ajax call but doing that triggers ajax calls multiple times

Upvotes: 0

Views: 543

Answers (1)

Nijin P J
Nijin P J

Reputation: 1322

$('.kendo-select').data('kendoDropDownList').dataSource.data(result);//where result is your data need to load

Upvotes: 2

Related Questions