I'm working on jquery jqgrid plugin. In this grid, I have 1,000,000 records with scroll: 1
option. and also I have rowNum: 10
option in my grid. But just first 10 row displayed in the grid and vertical scroll bar is missing. in the caption, I have "display 1-10 from 1,000,000" string. this means that the total number calculation is correct, but I don't know why scroll bar is missing. Can anyone help me to solve this problem?
EDIT: My jqGrid version is: 4.6.0
. Here is my javascript code:
$(document).ready(function() {
var colModel = [
{name: "id", width: 200, align: "center", searchoptions: {clearSearch: false}, hidden: true, hiddenlg: true},
{name: "ordernumber", width: 200, align: "center", searchoptions: {clearSearch: false}},
{name: "customer.fname", width: 200, align: "center", searchoptions: {clearSearch: false}},
{name: "customer.lname", width: 200, align: "center", searchoptions: {clearSearch: false}},
];
$("#list").jqGrid({
url: "/orders/listGrid",
datatype: "json",
mtype: "POST",
colNames: ["", "1", "2", "3"],
colModel: colModel,
pager: "#pager",
rowNum: 10,
rowList: [10, 20, 30],
viewrecords: true,
multiSort: false,
gridview: true,
autoencode: true,
shrinkToFit: false,
autowidth: true,
scroll: 1,
direction: "rtl",
height: 230,
caption: "Test",
hidegrid: false,
ajaxGridOptions: {
contentType: "application/json; charset=utf-8"
},
serializeGridData: function(data) {
return JSON.stringify(data);
},
});
});
And this is my html code:
<table id="list"></table>
<div id="pager"></div>
See Question&Answers more detail:
os