Hi
When I start inline editing a row and then click the cancel button then kendoui delete the row from the local viewmodel
I'm using a local viewmodel which i bind to my grid like the following:
and then i have the following init of the grid:
Is this a bug inside KendoUI or did I missed something?
When I start inline editing a row and then click the cancel button then kendoui delete the row from the local viewmodel
I'm using a local viewmodel which i bind to my grid like the following:
<
div
id
=
"prodReportGrid"
data-bind
=
"source:ProductionReports"
>
</
div
>
and then i have the following init of the grid:
$("#prodReportGrid").kendoGrid({
dataSource: {
pageSize: 50,
schema: {
model: {
id: "ProductionReportId",
fields: {
ProductionReportId: { editable: false, nullable: true },
ReportDateFrom: { type: "date", validation: { required: true } },
ReportDateTo: { type: "date", validation: { required: true } },
ProdAmount: { type: "number", validation: { required: true, min: 1} }
}
}
}
},
pageable: true,
sortable: true,
height: 350,
toolbar: ["create"],
columns: [
{ field: "ReportDateFrom", width: "100px", format: "{0:g}", editor: DateTimeEditor },
{ field: "ReportDateTo", width: "100px", format: "{0:g}", editor: DateTimeEditor },
{ field: "ProdAmount", title: "ProductionAmount", format: "{0:n}", width: "100px" },
{ command: ["edit", "destroy"], title: " ", width: "210px" }],
editable: "inline"
});
});
Is this a bug inside KendoUI or did I missed something?