I have jqGrid in an ASP.Net MVC view. I want to use to pass the value of a hidden text control on the page as an additional parameter to the jqGrid method.
I have the following hidden text box:
<div> <%= Html.Hidden("contactId", Model.ContactId) %> </div>
and I want to do something like:
userdata: {contactId : jQuery('#contactId')}
in jqGrid call. The Action Control method has the following signature:
public ActionResult SearchResult(string sidx, string sord, int page, int rows, object userdata)
But when I run it, userdata in C # code just says System.Object when I test it in the debugger, and I donβt think I can extract anything useful from it.
Any ideas I made a mistake in?
jquery asp.net-mvc jqgrid
Colin desmond
source share