Hi there! In the code below when i reach $("#bans-grid").kendoGrid() function i get the type of error i've mentioned in the title. I don't understand why. Any help will be appreciated!
$("#saveButton").kendoButton({
click: function() {
var channelsData = $("#bans-grid").data().kendoGrid.dataSource.view();
var channelsDataJson = JSON.stringify(channelsData);
$("#bans-grid").kendoGrid({
dataSource: {
transport: {
update: {
data: channelsDataJson,
url: "/bg/NotosPrime/Bans/BanChannels",
type: "PUT"
}
},
schema: {
model: {
id: "Id"
}
}
}
});
$("#bans-grid").dataSource.sync();
}
});