Open SajidPervez opened 7 years ago
Hi, I have setup bootgrid to show only 10 rows at a time but it still shows all records. My source looks like this:
HTML: "<th data-column-id='ItemID' data-type='numeric' data-identifier='true'>ID</th>"+ "<th data-column-id='ItemNumber'>Item Number</th>"+ "<th data-column-id='ItemDescription'>Description</th>"+ "<th data-column-id='ItemStatus'>Status</th>"+ "<th data-column-id='DateReceived'>Received Date</th>"+ "<th data-column-id='ItemNotes' data-formatter='text' data-sortable='false'>Text Description</th>"+ //"<th data-column-id='NoOfItems' data-formatter='select' data-sortable='false'>No. of Items</th>"+ "<th data-column-id='commands' data-formatter='commands' data-sortable='false'>Actions</th>";
"<th data-column-id='ItemID' data-type='numeric' data-identifier='true'>ID</th>"+ "<th data-column-id='ItemNumber'>Item Number</th>"+ "<th data-column-id='ItemDescription'>Description</th>"+ "<th data-column-id='ItemStatus'>Status</th>"+ "<th data-column-id='DateReceived'>Received Date</th>"+ "<th data-column-id='ItemNotes' data-formatter='text' data-sortable='false'>Text Description</th>"+ //"<th data-column-id='NoOfItems' data-formatter='select' data-sortable='false'>No. of Items</th>"+ "<th data-column-id='commands' data-formatter='commands' data-sortable='false'>Actions</th>";
AJAX Request: current "1" rowCount "10" searchPhrase ""
AJAX Response: Class "ProjectItems_model" Code 0 Status true current 1 rowCount 10 rows [12] 0 Object 1 Object 2 Object 3 Object 4 Object 5 Object 6 Object 7 Object 8 Object 9 Object 10 Object 11 Object total 12
Any help will be appreciated. Thanks
Try out http://gijgo.com/grid. Bootgrid seem to be dead.
Paginate at the server side. The current/rowcount/total stuff is just to make sure the navigation works properly.
Hi, I have setup bootgrid to show only 10 rows at a time but it still shows all records. My source looks like this:
HTML:
"<th data-column-id='ItemID' data-type='numeric' data-identifier='true'>ID</th>"+ "<th data-column-id='ItemNumber'>Item Number</th>"+ "<th data-column-id='ItemDescription'>Description</th>"+ "<th data-column-id='ItemStatus'>Status</th>"+ "<th data-column-id='DateReceived'>Received Date</th>"+ "<th data-column-id='ItemNotes' data-formatter='text' data-sortable='false'>Text Description</th>"+ //"<th data-column-id='NoOfItems' data-formatter='select' data-sortable='false'>No. of Items</th>"+ "<th data-column-id='commands' data-formatter='commands' data-sortable='false'>Actions</th>";
AJAX Request: current "1" rowCount "10" searchPhrase ""
AJAX Response: Class "ProjectItems_model" Code 0 Status true current 1 rowCount 10 rows [12] 0 Object 1 Object 2 Object 3 Object 4 Object 5 Object 6 Object 7 Object 8 Object 9 Object 10 Object 11 Object total 12
Any help will be appreciated. Thanks