HI,
I have this grid:
$("#ListaNotificacionesNavicare").ejGrid({
dataSource: ej.DataManager({ json: ej.parseJSON(result.listaNotificaciones), updateUrl: "/home/ActualizarNotificacionesNavicare", adaptor: "remoteSaveAdaptor" }),
columns: [
{ field: "Id", isPrimaryKey: true, visible: false },
{ field: "Notificada", headerText: "Leído", editType: "booleanedit", width: "3em" },
{ field: "Cliente", headerText: "Cliente", allowEditing: false, width: "15em" },
{ field: "Descripcion", headerText: "Proceso", allowEditing: false, width: "25em" },
{ field: "FechaCreacion", headerText: "Fecha", allowEditing: false, format: "{0:yyyy-MM-dd HH:mm:ss}", width: "10em" },
{ field: "TiempoTranscurrido", headerText: "Tiempo transcurrido", allowEditing: false, width: "8em" },
{ field: "NombreUsuario", headerText: "Responsable", allowEditing: false, width: "8em" },
],
enableTouch: false,
//locale: "es-CO",
allowScrolling: true,
isResponsive: true,
allowPaging: true,
allowSorting: true,
allowFiltering: true,
exportToExcelAction: "/Home/NotificacionesExportToExcel",
rowDataBound: "CambiarColorFila",
dataBound: "OnDataBound",
queryCellInfo: "CalcularTiempoTranscurrido",
editSettings: { allowEditing: true },
toolbarSettings: {
showToolbar: true,
toolbarItems: [ ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel, ej.Grid.ToolBarItems.ExcelExport ],
customToolbarItems: [{ templateID: "#NoLeidos" }, { templateID: "#Todos" }]
},
toolbarClick: "FiltrarLeidos"
});
When updating a record, I am getting an error about date format, the error is just before calling the update function (the url).
I am attaching images of what is happenning.
BeforeEditing.png shows the state of the grid when it is loaded. Note the date column.
Editing.png shows the state of the record when it is edited. Note that the date cell format is changed and shows the date as it is in the datasource.
ErrorInVisualStudio.png is the error message I am getting after clicking the update button.
Continuing the execution in visual studio, I have a breakpoint in the controller action that updates the grid, AfterError.png is a screenshot of the content of value at that point.
Finally, AfterUpdating.png shows the final result of the record modified. Note that the date is now is different.
Attachment:
ErrorInDatesUpdatinGrid_e74a03be.zip