How to hide specific column on print datable using tabletools

How to hide specific column on print datable using tabletools

praveenpatelpraveenpatel Posts: 2Questions: 1Answers: 0

"sExtends": "print",

            "oSelectorOpts": { filter: 'applied', order: 'current' },
             "mColumns": [0, 1, 2, 3, 4, 5, 6]

I want to hide 7 coumn but its not working,please suggest me sir

Answers

  • chillyrameshchillyramesh Posts: 2Questions: 1Answers: 0

    same problem, still i couldn't get a solution. it will be good if someone helps

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    You will have to show your code.

  • allanallan Posts: 63,700Questions: 1Answers: 10,502 Site admin

    Actually, currently there is no option to hide columns in the print view. I'm working on a replacement to TableTools at the moment that will have this feature.

    Allan

  • praveenpatelpraveenpatel Posts: 2Questions: 1Answers: 0

    Thans Allan ,i will waiting for solution of this problem

  • suganthanrajsuganthanraj Posts: 1Questions: 0Answers: 0

    Still i have a problem in it to hide specific column when print

    "sExtends": "print",
    "mColumns": [ 0, 1, 2 ]

  • allanallan Posts: 63,700Questions: 1Answers: 10,502 Site admin

    I'm working on a new plug-in that will replace TableTools and will include this functionality. It should be released in the next few weeks.

    Allan

  • m1a1rm1a1r Posts: 8Questions: 3Answers: 0

    have u get any solution for this problem yet?

  • allanallan Posts: 63,700Questions: 1Answers: 10,502 Site admin

    Yes, see the print button type - specifically the exportOptions option (which in turn uses buttons.exportData() which has this option).

    Allan

  • wilsonsjrwilsonsjr Posts: 1Questions: 0Answers: 0

    Allan do you have an code example to hide the column when print ? Thanks

  • allanallan Posts: 63,700Questions: 1Answers: 10,502 Site admin

    Example. This and others are available on the Buttons examples index page.

    Allan

This discussion has been closed.