Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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);
like image 904
Vlad Bezden Avatar asked Nov 13 '12 16:11

Vlad Bezden


1 Answers

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>");
like image 112
Vlad Bezden Avatar answered Oct 10 '22 02:10

Vlad Bezden