Custom Delete Confirmation popup on Kendo Grid

23,281

Solution 1

I am guessing you will need to do this manually. Simply add a custom button to the grid, that calls your code to delete the item.

Kendo Grid Custom command http://demos.kendoui.com/web/grid/custom-command.html

Sample jsbin http://jsbin.com/OZeLuXA/1/edit

Solution 2

Kendo has a demo on that you can try. But this is probably the latest version so it may not work well with the older versions.

Please check "Customize the delete confirmation dialog of Kendo UI Grid" on their official website, here.

For older versions you can check "Using a Kendo UI Window as a confirmation prompt in a Grid" in Telerik Forum here.

Share:
23,281
photo_tom
Author by

photo_tom

I'm an "experienced" programmer who has made a point of never doing the same job twice. As a result, I've gotten so that I prefer projects that don't just use one technology, but a collection of related ones. Primarily a Windows programmer who loves .Net, but native c++/Qt/Boost comes in a close second. The world of programming is an interesting place that is changing at an ever faster pace. There are so many new and really wonderful ideas, frameworks, library, etc, being released every day that is is like drinking from a fire hose to keep up. But who is complaining

Updated on January 20, 2020

Comments

  • photo_tom
    photo_tom over 4 years

    I have a Kendo grid where I need to customize the delete confirmation message box based on data in row being deleted. I have a customized general message as part of Grid configuration as below.

     editable: {
         confirmation: "Are you sure that you want to delete this record?",
         mode: "popup",
         template: kendo.template($("#popup-editor").html())
    }
    

    I was looked at using the remove event handler, but that fires after the row has been deleted.