I want to pass the variable grid to a method(controller)
Here is my ajax code:
function SaveReorderPriority(){
var partnerId = $("#partnerDropDownList").val();
var isoCountryCd = $("#cntryDropDownList").val();
var partnerSystem = $("#partnerSysDropDownList").val();
var grid = $("#critCombiMapGrid").jqGrid('getGridParam', 'data');
if (partnerId != "" && isoCountryCd != "" && partnerSystem!="") {
$.ajax({
type: 'POST',
url: '../../C3Web/CriteriaCombinationMapping/Index',
dataType: 'json',
data: { partnerId: partnerId, isoCountryCd: isoCountryCd, partnerSystem: partnerSystem, grid : grid},
Here is my method from Controller. Please help me to pass the variable grid to this method parameter:
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Index(String grid, string partnerId, string isoCountryCd, string partnerSystem)
{