I'm using the kendoGrid, but I don't know the type of transport which is raising the error. Can I get it in any way?
Here is the sample code:
dataSource = {
transport: {
read: "http://www.mysite.com/get",
update: {
url: "http://www.mysite.com/update",
data: {}
},
destroy: {
url: "http://www.mysite.com/delete",
data: {}
},
create: {
url: "http://www.mysite.com/create",
data: {}
}
},
error: function (e) {
//todo: How can I get which type of request is making? get, update, destroy, or create? Different error types have different error message.
}
};
Here is the sample code:
dataSource = {
transport: {
read: "http://www.mysite.com/get",
update: {
url: "http://www.mysite.com/update",
data: {}
},
destroy: {
url: "http://www.mysite.com/delete",
data: {}
},
create: {
url: "http://www.mysite.com/create",
data: {}
}
},
error: function (e) {
//todo: How can I get which type of request is making? get, update, destroy, or create? Different error types have different error message.
}
};