exclude columns from export

exclude columns from export

kaiiserkaiiser Posts: 9Questions: 0Answers: 0
edited March 2010 in TableTools
Hi Allen (and everybody else),

i got a DataTable containing a lot of attendee-related data and 2 columns displaying different types of date & time. I need one for my export (the data is feeded into a access-app) and the other one for sorting in the DataTable. My problem is now, that i could not find any way to exclude columns from the export.

Could you lend me a helping hand?

Thanks a lot!

Replies

  • allanallan Posts: 54,688Questions: 1Answers: 8,553 Site admin
    TableTools exporting columns is currently based on the column visibility in DataTables. Future versions of TableTools will offer more flexibility in this area, but at the moment, you might need to change the visibility of the columns when the export is hit - or add a small hack into TableTools to do what you want.

    Allan
  • kaiiserkaiiser Posts: 9Questions: 0Answers: 0
    Hi Allen,

    thanks for your answer. I hope future version come fast. :)

    wish you best! K.
  • doug_hale_jrdoug_hale_jr Posts: 22Questions: 0Answers: 0
    Allen,

    I am inserting a row using the code below. Is there a way to have that row displayed when using TableTools?

    [code]

    "fnDrawCallback": function ( oSettings ) {
    if ( oSettings.aiDisplay.length == 0 )
    {
    return;
    }

    var nTrs = $('#savedreports tbody tr');
    var iColspan = nTrs[0].getElementsByTagName('td').length;
    var sLastGroup = "";
    for ( var i=0 ; i
This discussion has been closed.