How to make PDF not show hidden column & iDisplay data (like 10 rows)
How to make PDF not show hidden column & iDisplay data (like 10 rows)
Eaktadiur
Posts: 2Questions: 0Answers: 0
[code]
$(document).ready(function(){
var oTable = $('#dt_Vendors').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"iDisplayLength": 25,
//"bAutoWidth": false,
"oLanguage": {
"sLengthMenu": 'Display '+
'10'+
'25'+
'50'+
'75'+
'100'+
'All'+
' records'
},
"sPaginationType": "full_numbers",
"sScrollX": "100%",
//"sDom":'T<"clear"><"H"lfr>t<"F"ip>',
// "sDom": 'lfr<"giveHeight"t>ip'
//"iDeferLoading": 20,
//"sDom": 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>',
"fnDrawCallback": function ( oSettings ) {
if ( oSettings.aiDisplay.length == 0 )
{
return;
}
var nTrs = $('#dt_Vendors tbody tr');
var iColspan = nTrs[0].getElementsByTagName('td').length;
var sLastGroup = "";
for ( var i=0 ; i
$(document).ready(function(){
var oTable = $('#dt_Vendors').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"iDisplayLength": 25,
//"bAutoWidth": false,
"oLanguage": {
"sLengthMenu": 'Display '+
'10'+
'25'+
'50'+
'75'+
'100'+
'All'+
' records'
},
"sPaginationType": "full_numbers",
"sScrollX": "100%",
//"sDom":'T<"clear"><"H"lfr>t<"F"ip>',
// "sDom": 'lfr<"giveHeight"t>ip'
//"iDeferLoading": 20,
//"sDom": 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>',
"fnDrawCallback": function ( oSettings ) {
if ( oSettings.aiDisplay.length == 0 )
{
return;
}
var nTrs = $('#dt_Vendors tbody tr');
var iColspan = nTrs[0].getElementsByTagName('td').length;
var sLastGroup = "";
for ( var i=0 ; i
This discussion has been closed.
Replies
There is currently no option to only export the visible rows - that would need to be an addition made to TableTools.
Allan
Is adding this option something that is on the table? I have been forced to remove PDF export option because it garbles the output when columns are hidden.