Hello, I'm creating simple grid, which is populated with data via controller and it's work just fine.
But the problem is when I'm trying to remove a row with .Destroy() method, which doesn't call method from my controller.
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "controller")) <-- this works well
.Destroy(destroy => destroy.Action("Read", "controller"))) <-- isn't called at all
method in controller
public ActionResult Delete([DataSourceRequest] DataSourceRequest request, Model model)
{ <-- I've put breakpoint here and it's not get there
return NotFound();
}
I have no idea where the problem is.