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

Vlad Bezden picture Vlad Bezden · Nov 13, 2012 · Viewed 24.7k times · Source

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);

Answer

Vlad Bezden picture Vlad Bezden · Nov 14, 2012

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>");