VJAI
VJAI

Reputation: 32768

Change the names of the parameters posted to server in jqgrid

On submitting the edit form in jqgrid it post the entity-id as id=some_value. How I can change the name of the parameter from id to Id, that saves my life in ASP.NET MVC model binding at server side.

Upvotes: 1

Views: 651

Answers (1)

Oleg
Oleg

Reputation: 222017

You can use prmNames parameter to rename any jqGrid parameter. For example

prmNames: {id:'Id'}

Upvotes: 3

Related Questions