Hi,
I have Kendo Grid using JQuery which has datasource assigned in one of the javascript function using new instance of kendo.data.DataSource(). First time when datasource is created/assigned there are several parameters passed in transport: read: data. One of the parameters is flag which indicates if item should be saved. First time it's assigned to true to save the item in database. I do have all sorts options for grid inside the Kendo DropDownList. Inside the change event of those sort options I do sort on the grid using following code. But the problem is my item save flag remains true so when I do sort it also keep saving item in database creating duplicate entries. So wondering how can I change that item save flag before doing sort?
var grid = $("#GridId").data("kendoGrid");
grid.dataSource.sort({ field: arr[0], dir: arr[1] });
Thanks!