Supermode
Supermode

Reputation: 936

KendoUi dropdownlist : how to select text instead index

How i could select datatext field instead index

the following select the index instead the datatext field

var hhProduct = $("#ProductData").data("kendoDropDownList").select();

Please advise how i can achieve this

Upvotes: 4

Views: 12544

Answers (1)

Arun Killu
Arun Killu

Reputation: 14263

To get or set text of a dropdown you have to use $("#ProductData").data("kendoDropDownList").text();

Upvotes: 7

Related Questions