Im using kendo ui asp.net mvc Grid in my project.
is there a way to keep popup editor open when inserting new data?
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();
})
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With