My Grid has the following code
.DataSource(dataSource => dataSource
.Ajax()
.AutoSync(false)
.Model(model => model.Id(p => p.No))
.Destroy(update => update.Action("DeleteData", "DataController"))
.Events(evt => evt.Error("cancelDelete"))
Following is the controller
[HttpPost]public ActionResult DeleteData([DataSourceRequest] DataSourceRequest request, Datamodel data)
{
I see data has null when it call the controller function
What could be the reason for data is null and the No is not passed.
Thanks
Hi Chakrapani,
Thank you for the code snippets and details provided.
The fastest route to getting you up and running is if you could provide a runnable, isolated, sample project. Examining this project will let us replicate the issue locally and further troubleshoot it.
Looking forward to hearing back from you.
Kind Regards,
Anton Mironov