我试图将 navgrid 添加到工作的 jqgrid 但它没有显示。imo 文档可能会更好。
$("#" + id + "Table").jqGrid({
datatype: "local",
data: data,
colNames: colNames,
colModel: colModel,
pager: '#' + id + 'Table',
autowidth: true,
scroll: false,
forceFit: true,
shrinkToFit: true, //Width of columns should be expressed in integers which add to 100
rowNum: <xsl:value-of select="$totalLength"/>,
rowTotal: <xsl:value-of select="$totalLength"/>,
sortname: defaultSortColumn,
sortorder: defaultSortOrder,
url: "fs/servlet/CS"
});
$("#" + id + "Table").jqGrid('navGrid',"#" + id + "Pager",{edit:true,add:true,del:true});