0
我正在使用jqGrid來顯示我的數據,但它不顯示搜索按鈕。這是爲什麼?代碼如下。jqGrid不顯示搜索按鈕
$("#grdOpenItems").jqGrid({
url: 'api/matchingservicewebapi/GetAllMatchItemForClient',
datatype: 'json',
mtype: 'GET',
caption: 'Open Items',
jsonReader: { root: "rows", repeatitems: false, id : "0"},
colNames: ['Id', 'Account', 'Amount', 'Ref'],
colModel: [
{ name: 'Amount', index: 'Amount', width: 200 },
{ name: 'Account', index: 'Account', width: 300 },
{ name: 'Amount', index: 'Amount', width: 300 },
{ name: 'Ref', index: 'Ref', width: 300 }
],
rowNum: 5,
rowList: [5, 10, 15],
multiselect: true,
pager: '#pagerOpenItems',
viewrecoreds: true,
sortname: 'Id',
sortorder: "desc",
imgpath: 'Themes/images'
}).navGrid(pager, {
edit: true, add: true, del: true, refresh: true, search: true,
searchtext: "Search" });
但它顯示帶圖像的頁面導航按鈕,但不顯示搜索和重新加載按鈕。
相關問題:http://stackoverflow.com/questions/1435001/navgrid-not-working-with-jqgrid AND http://stackoverflow.com/a/4027331/1220302有一些要考慮的問題 – anAgent 2012-07-13 13:03:27