Search code examples
teleriktelerik-gridtelerik-mvckendo-ui

How to create custom Delete/Destroy button/command in Kendo UI grid?


I am using Kendo UI grid with GridEditMode.InCell and I need to add a hyperlink for delete/destroy command in the grid column instead of the default "Delete" button.

My current code looks like:

c.Command(command => command.Destroy()).Width(90);

Solution

  • Here is what I end up doing

              c.Template(@<text></text>)
                  .Width(50)
                  .ClientTemplate(@"<a class=""k-button-icontext k-grid-delete"" href=""\#"">Delete</a>");