Hi, I'm using the kendo UI grid without using the dataprovider(including the transport object) because we are using server sides pushed data.
All I want to do is when i click delete on the grid, or add, catch that event and do some stuff.
however I can't get the listener to kick off. Iv'e tried 2 methods outlined in the docs, but I think its because i'm not using the data provider?
and
This is how i'm refreshing the data
I also had the same issue using the toolbar[] to define the destroy button.
Looking at my console it looks like its trying to call destroy in the data provider but again i'm not using that
All I want to do is when i click delete on the grid, or add, catch that event and do some stuff.
however I can't get the listener to kick off. Iv'e tried 2 methods outlined in the docs, but I think its because i'm not using the data provider?
$("#grid").kendoGrid({
columns: [
"Id",
"HostName",
"BaseUri",
{ field: null,command: "destroy"}
],
editable: true,
remove: function(row) {alert("removed");}
});
$("#grid").kendoGrid({
remove: function(e) {
// handle event
});
have not been working for meThis is how i'm refreshing the data
$("#grid").data("kendoGrid").dataSource.data(message).read();
I also had the same issue using the toolbar[] to define the destroy button.
Looking at my console it looks like its trying to call destroy in the data provider but again i'm not using that