5
votes

Im using kendo ui asp.net mvc Grid in my project.

is there a way to keep popup editor open when inserting new data?

1

1 Answers

2
votes

Interesting question, made me want to try and implement this.

Attach an event handler to the Save event. This should be called when the 'update' button is clicked.

 .Events(x => x.Save("SaveChanges"))

The event that closes the window is the dataBinding event of the grid so we are going to prevent that from happening.

function SaveChanges() {

alert("SaveChanges-Fired");

var grid = $("#GridName").data("kendoGrid");

    grid.bind("dataBinding",function(e){
       e.preventDefault();
   })
}