Rohullah Rajaee Rad
Rohullah Rajaee Rad

Reputation: 581

How to call ajax kendo mvc function with jquery

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

Answers (2)

Pallavi
Pallavi

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

sandro
sandro

Reputation: 217

You should call datasource read method.

$("#your_grid_id").data("kendoGrid").dataSource.read();

Upvotes: 1

Related Questions