I'm trying to do a remove on my grid's dataSource, so the first thing I try to do is to get the model I want to remove:
var toRemove = grid.data("kendoGrid").dataSource.get(deleteId);
This is causing an error:
"Uncaught TypeError: Cannot call method 'get' of undefined" (references kendo.all.js:4735)
What's puzzling about this is that grid.data("kendoGrid").dataSource isn't undefined and I can successfully call filter on it. Am I missing something here when using .get()?
var toRemove = grid.data("kendoGrid").dataSource.get(deleteId);
This is causing an error:
"Uncaught TypeError: Cannot call method 'get' of undefined" (references kendo.all.js:4735)
What's puzzling about this is that grid.data("kendoGrid").dataSource isn't undefined and I can successfully call filter on it. Am I missing something here when using .get()?