Reputation: 433
I have an error on getting the data from the Grid as a json object
$('#AttachmentsGrid').data('kendoGrid').dataSource.view().toJSON()
TypeError: $("#AttachmentsGrid").data("kendoGrid").dataSource.view().toJSON is not a function
Upvotes: 1
Views: 2563
Reputation: 17203
Use
JSON.stringify($('#AttachmentsGrid').data('kendoGrid').dataSource.view())
Upvotes: 3