jqGrid の URL メソッドに追加のパラメーターを 1 つまたは 2 つ送信する必要があります。それを行う方法はありますか?
$(document).ready(function () {
jQuery("#frTable").jqGrid ({
cmTemplate: { sortable: false },
caption: '@TempData["POPNAME"]' + ' Population',
url: '/Encounters/GetAjaxPagedGridData/'+ @TempData["POPULATIONID"]+'',
...
これは私が打とうとしている方法です...
public string GetAjaxPagedGridData(int page, int rows, int popId) {
return "";
}
こんなことを考えていた
url: '@Url.Action("GetAjaxPagedGridData", "Encounters", new { popId = TempData["POPULATIONID"] })'