我的aspx页面上有以下代码:
jQuery("#listFondos").jqGrid({
url: '/PorMyController/LoadGridData/',
datatype: 'json',
mtype: 'GET',
colNames: ['col1', 'col2',...etc
一切都运行正常,但我想知道是否可以调用URL方法发送一些参数。我知道默认情况下,当你调用url方法时,jqgrid会发送一些参数来控制网格的分页:
public ActionResult LoadGridData(string sidx, string sord, int page, int rows)
所以,我想添加一个额外的参数来对要加载到网格中的数据进行一些过滤。例如,我想有这个:
public ActionResult LoadGridData(string sidx, string sord, int page, int rows, string filterId)
据我所知,我不需要指定前3个参数,因为jqgrid默认是这样做的,但是我如何发送filterId参数?