i want to make event when some button is clicked, data on combo box is reloaded
this my script, but it's doesn't work
if i click button a, data on combo box nothing reload
Thank You
this my script, but it's doesn't work
<
div
id
=
"example"
class
=
"k-content"
>
Select a title from Netflix:
<
input
id
=
"titles"
/>
<
button
id
=
"a"
/>
<
script
>
$(document).ready(function() {
var aa = $("#titles").kendoComboBox({
index: 0,
placeholder: "Select City",
dataTextField: "name",
dataValueField: "id_city",
filter: "contains",
dataSource: {
serverFiltering: true,
serverPaging: true,
pageSize: 20,
transport: {
}
}
});
$("#a").click(function (e) {
aa.refresh();
});
});
</
script
>
</
div
>
if i click button a, data on combo box nothing reload
Thank You