Can we configure Kendo grid data source to be Synchronous
.DataSource(dataSource =>
dataSource.Ajax()
.Model(model =>
{
.Read(read => read.Action("Products_Read", "Home")))
.......
$("#grid").data("kendoGrid").dataSource.read();
Is this is an Ajax Asynchronous call. If so can we make this call to a Synchronous call. Please suggest me a solution. Thank you.
To force the Kendo datasource for synchronous behavior, configure your datasource transport with async: false e.g.
var datasource = new kendo.data.DataSource({
type: "odata",
transport: {
read: {
async: false,
url: function (data) {
return "/odata/Product";
},
dataType: "json"
},
},
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With