Hi
This pertaining to the pagination feature in datatables
If you see the example illustrated at the following link,
http://datatables.net/release-datatables/examples/basic_init/alt_pagination.html
You will notice that the table contracts while adjusting to the number of rows while moving between 5th and 6th page when showing 10 entries in each page.
This creates as if the table is jumping on the page, imagine a situation where only one row is present on the last page, then the table is reduced to merely a couple of rows.
Is there anyway we can handle this ie keep the table width constant in css px and align accordingly with no of rows??
We have used the bScrollCollapse where the html table height is less than the jquery datatable height and this is consistent for average data sets (say anything above 7 rows) but if the data from the table is one or two rows the height of the table changes drastically as bScrollCollapse tries to readjust the table height.
This feature also affects bfilter setting of jquery datatables , when the data is filtered to smaller sets, the table shrinks drastically
This is undesirable in our case, the user always wants the table to be have a certain height,
The current datatable configuration is
Thanks in advance
Raj
This pertaining to the pagination feature in datatables
If you see the example illustrated at the following link,
http://datatables.net/release-datatables/examples/basic_init/alt_pagination.html
You will notice that the table contracts while adjusting to the number of rows while moving between 5th and 6th page when showing 10 entries in each page.
This creates as if the table is jumping on the page, imagine a situation where only one row is present on the last page, then the table is reduced to merely a couple of rows.
Is there anyway we can handle this ie keep the table width constant in css px and align accordingly with no of rows??
We have used the bScrollCollapse where the html table height is less than the jquery datatable height and this is consistent for average data sets (say anything above 7 rows) but if the data from the table is one or two rows the height of the table changes drastically as bScrollCollapse tries to readjust the table height.
This feature also affects bfilter setting of jquery datatables , when the data is filtered to smaller sets, the table shrinks drastically
This is undesirable in our case, the user always wants the table to be have a certain height,
The current datatable configuration is
.dataTable({ "bProcessing" : true, "bDestroy" : true, "bAutoWidth" : true, "sScrollY" : "200", "sScrollX" : "100%", "bScrollCollapse" : true, "bSort" : true, "sPaginationType" : "full_numbers", "iDisplayLength" : 25, "bLengthChange" : false });
Thanks in advance
Raj