Viewing All Records
Viewing All Records
xtremer360
Posts: 84Questions: 2Answers: 0
I have this however I have a button on the page with a class of viewAll to where I want it to display ALL rows instead of just displaying 10 with the pagination. How is this accomplished?
[code]
$(document).ready(function() {
var oTable = $('#contentPagesPageList').dataTable( {
"sDom": 'rti<"pagination"p>',
"iDisplayLength": 10,
"sPaginationType": "full_numbers"
} );
$('.viewAll').click(function() {
?
)};
)};
[/code]
[code]
$(document).ready(function() {
var oTable = $('#contentPagesPageList').dataTable( {
"sDom": 'rti<"pagination"p>',
"iDisplayLength": 10,
"sPaginationType": "full_numbers"
} );
$('.viewAll').click(function() {
?
)};
)};
[/code]
This discussion has been closed.
Replies
Allan
Also for some reason the following code causes the script to not work.
[code]
$('.viewAll').click(function() {
oTable.fnLengthChange( -1 );
)};
[/code]