rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

rowCount=10, bootgrid still shows all records #365

Open SajidPervez opened 7 years ago

SajidPervez commented 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>";

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

stvowi commented 6 years ago

Try out http://gijgo.com/grid. Bootgrid seem to be dead.

shayneoAtNorwood commented 6 years ago

Paginate at the server side. The current/rowcount/total stuff is just to make sure the navigation works properly.