How to create a user Delete / Destroy / command in the Kendo UI grid?

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

My current code is as follows:

 c.Command(command => command.Destroy()).Width(90); 
+7
source share
2 answers

That's what I'm doing

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

All you have to do is add an element with class k-grid-delete .

For example, you can add the following anchor to the template column and it will start working as a delete button.

 <a class="k-button k-button-icontext k-grid-delete" href="#">My delete !</a> 
+10
source

All Articles