Search code examples
javascriptkendo-gridtelerik-gridkendo-windowkendo-editor

How to do grid update without closing window


I have a grid with data. Currently I am using "Popup editing" and a custom template for this window.

        editable: {
            mode: "popup",
            window : {
                resizable: true,
                animation: false,
                modal: false
            },
            template: kendo.template($("#popup-editor").html())
        },

I want make the grid update when the user is looking at the editing window, but the window is closing when I do this:

$("#grid").data("kendoGrid").dataSource.read();

How do I update the grid without the window closing?


Solution

  • According to Kendo documentation you should:

    -set the grid's editable configuration option

    -declare field definitions through the DataSource schema

    -configure the DataSource for performing CRUD data operations defining its transport -> create/update/destroy attributes

    And popup editor will update datasource automatically