Hi,
I am binding JSON data to grid.but facing issue on it
can u pls provide example for asp.net without mvc to bind data to kendo grid.
<div id="grid"></div>
<script>
$(document).ready(function () {
$.ajax({
type: "POST",
url: "Default.aspx/Test,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
BindGrid(response.d);
}
});
});
function BindGrid(sourcedata) {
$("#grid").kendoGrid({
sortable: true,
groupable: true,
scrollable: true,
height: "300px",
pageable: {
pageSizes: 9
},
dataSource: sourcedata
});
}
</script>