This is a migrated thread and some comments may be shown as answers.

Grid inline edit cancelling not working

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 24 Aug 2012, 03:10 PM
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:
<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?

1 Answer, 1 is accepted

Sort by
0
Tushar
Top achievements
Rank 1
answered on 26 Oct 2012, 01:46 PM
Roland,
Did you get it resolved? If yes, how? I have same issue and would like to know your resolution.
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Tushar
Top achievements
Rank 1
Share this question
or