I have this problem where i need to Control the Kendo Grid when i change the value of my drop down list using jquery
I need to change the Values inside the kendo grid on every drop down change
Thanks
This is my Drop down list Onchange Event
$("#ddlRadius").live("change", function () {
var selectValue = "";
selectValue = $("#ddlRadius option:selected").val();
if (selectValue == "77") {
Rad = 5;
}
else if (selectValue == "78") {
Rad = 10;
}
else if (selectValue == "79") {
Rad = 25;
}
else if (selectValue == "80") {
Rad = 50;
}
else if (selectValue == "81") {
Rad = 100;
}
else {
}
});
This is my Kendo Grid
$("#workerGrid").kendoGrid({
scrollable: false,
sortable: true,
pageable: {
refresh: true,
pageSizes: true
},
dataSource: {
transport: {
read: {
url: '/Maps/LoadList?ID=' + ID + '&radius=' + Rad,
dataType: "json",
type: "POST"
}
},
pageSize: 10
},
rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),
altRowTemplate: kendo.template($("#rowTemplate").html())
});