Row Styling to Apply to Print View?

Row Styling to Apply to Print View?

zgoforthzgoforth Posts: 493Questions: 98Answers: 2

Link to test case: https://jsfiddle.net/BeerusDev/gm10rqp7/217/

Hello,

I was curious if there was a possibility that I could maintain my row styling when I print my table? Right now, it does not do that

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Unfortunately no, you would need to apply the styling yourself using the PDFMake library. This example shows how you can change the colour, that may help,

    Colin

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

    @colin - wouldn't a print stylesheet in the original document do the trick?
    I never seem to get around to trying print stylesheets - there's always more important stuff.

  • zgoforthzgoforth Posts: 493Questions: 98Answers: 2

    Thanks you two!!

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    For the print button (not pdf) we don't actually maintain the classes that are applied to the cells. Possibly we should, but at the moment you would need to use the customize callback to add the classes.

    With the classes in place, then yes, you could use a print stylesheet as @tangerine suggests.

    Allan

Sign In or Register to comment.