column headins missing on print view
column headins missing on print view
jkrobbins
Posts: 32Questions: 3Answers: 0
Another weird problem since my switch to server-side processing. Might be related to my other post here: http://www.datatables.net/forums/discussion/6997/flash-divs-wrong-size#Item_2
Now when I bring up the print view, the column headings disappear. Here's my init code:
[code]
$('#paraminputbtn').live('click',(function(){
$('#optionselected').val($('#selectedtablefield').val());
var oTable = $('#resulttable').dataTable();
oTable.fnDestroy();
$('#resulttable').dataTable({
'bFilter' : false,
'bSort' : false,
'bServerSide' : true,
'bProcessing': true,
'bAutoWidth' : true,
'sAjaxSource' : '/mfgweb/DataTransferResults',
'bPaginate': false,
'sScrollY': '400px',
'sScrollX': '100%',
'bScrollCollapse': true,
'sDom' : 'Trt',
'oTableTools' : {
'sSwfPath' : '/mfgweb/common/scripts/swf/copy_cvs_xls.swf',
'aButtons' : ['copy', 'xls', 'print']
},
'fnRowCallback' : function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
var rowID = 'row' + iDisplayIndexFull;
$(nRow).attr('id', rowID);
return nRow;
},
'fnServerData' : function(sSource, aoData, fnCallback) {
$.getJSON(sSource, aoData.concat($('.inputfield').serializeArray()),function(json){
fnCallback(json);
});
},
'fnInitComplete' : function() {
$('div#resultdiv').show('fast', function(){
oTable.fnAdjustColumnSizing();
});
}
});
}));
[/code]
Any ideas on this one?
Now when I bring up the print view, the column headings disappear. Here's my init code:
[code]
$('#paraminputbtn').live('click',(function(){
$('#optionselected').val($('#selectedtablefield').val());
var oTable = $('#resulttable').dataTable();
oTable.fnDestroy();
$('#resulttable').dataTable({
'bFilter' : false,
'bSort' : false,
'bServerSide' : true,
'bProcessing': true,
'bAutoWidth' : true,
'sAjaxSource' : '/mfgweb/DataTransferResults',
'bPaginate': false,
'sScrollY': '400px',
'sScrollX': '100%',
'bScrollCollapse': true,
'sDom' : 'Trt',
'oTableTools' : {
'sSwfPath' : '/mfgweb/common/scripts/swf/copy_cvs_xls.swf',
'aButtons' : ['copy', 'xls', 'print']
},
'fnRowCallback' : function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
var rowID = 'row' + iDisplayIndexFull;
$(nRow).attr('id', rowID);
return nRow;
},
'fnServerData' : function(sSource, aoData, fnCallback) {
$.getJSON(sSource, aoData.concat($('.inputfield').serializeArray()),function(json){
fnCallback(json);
});
},
'fnInitComplete' : function() {
$('div#resultdiv').show('fast', function(){
oTable.fnAdjustColumnSizing();
});
}
});
}));
[/code]
Any ideas on this one?
This discussion has been closed.