How can I hide/drop the Show dropdown box in CSS
How can I hide/drop the Show dropdown box in CSS
I have nearly managed to make bServerSide work with Paginate with SQL Server.
For each request I am returning 100 rows together with count of total rows as below:
sEcho = param.sEcho,
iTotalRecords = 875,
iTotalDisplayRecords = 100
so for example page 2 will return rows from: 101-200
The datatable paginate then works out the page numbers. However I need hide/drop the Show dropdown box (can be in CSS) because once I change the dropdown option it messes up my page numbers and I do not want the option for user to change the entries showed on the page. It will be fixed at 100.
I have tried bPaginate to false but this also removes the page nos therefore I need it set to true - "bPaginate": true because this will generate my page numbers.
For each request I am returning 100 rows together with count of total rows as below:
sEcho = param.sEcho,
iTotalRecords = 875,
iTotalDisplayRecords = 100
so for example page 2 will return rows from: 101-200
The datatable paginate then works out the page numbers. However I need hide/drop the Show dropdown box (can be in CSS) because once I change the dropdown option it messes up my page numbers and I do not want the option for user to change the entries showed on the page. It will be fixed at 100.
I have tried bPaginate to false but this also removes the page nos therefore I need it set to true - "bPaginate": true because this will generate my page numbers.
This discussion has been closed.
Replies
Allan
iTotalRecords = 875,
iTotalDisplayRecords = 100,
The number of pages should be from 1-9 but I am getting pages 1-10 ?? Why is the datatable including an additional empty page ?
From the documentation ( http://datatables.net/usage/server-side ):
> iTotalDisplayRecords Total records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned in this result set)
Allan
Allan