Using EditUrl To Post Data

Using EditUrl To Post Data

I'm working with a legacy code and it's giving me a hard time as I cannot figure out how data are being passed from jqgrid to a method on the server.

The server method signature is as follows:
  1. public ActionResult ShowProductsDetails(string operation Product prod, string extraData)
I noticed that the operation parameter is used to decide which action to use i.e. edit, delete, save.
The prod parameter contains data from all the columns of the jqgrid. 
extraData is an extra data that is set using edtitData.

I don't understand how the parameters operation, prod, and extraData are being passed to the server side method  ShowProductsDetails using editurl when the user clicks on the delete button.

Normally after navGrid there are a bunch of code blocks separated by commas used for adding, deleting, searching, etc jqgrid data but I only see editData in the code for editing. 

I've put code for deleting jqgrid rows in the code block for Delete but it doesn't get called when I click on the delete button. Instead I get a popup asking me to confirm if I want to delete the rows I selected and I don't know how this code is called and why it overrides my code.

I also noticed that postData is not being used to post data so how might the data