Reputation: 581
i'm using kendo mvc grid.i want Read/Update functions run by manuly(jquery) it's my function:
.Read(read => read.Action("Eqp_Read", "ShiftReports"))
Upvotes: 0
Views: 971
Reputation: 36
In Kendo grid MVC, you can use. Events to specify your own javascript functions for read
, update
, save
and so on.
In those javascript functions, you can write ajax calls like below.
Example:
.Events(
m => m.Save("SaveFunc")
.Edit("EditFunc")
.DataBound("ReadFunc")
)
And in JavaScript:
function SaveFunc(e) {
//Your ajax code here
}
Upvotes: 0
Reputation: 217
You should call datasource read method.
$("#your_grid_id").data("kendoGrid").dataSource.read();
Upvotes: 1