Hi, I've searched and tried getting this fixed for some hours now, but cannot get it to work.

Hi, I've searched and tried getting this fixed for some hours now, but cannot get it to work.

neha_wawalkarneha_wawalkar Posts: 5Questions: 2Answers: 0

can we use cell classes
[https://datatables.net/manual/styling/classes#Cell-classes] to align particular columns to right align on pdf export?

Replies

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770

    See if this thread helps.

    Kevin

  • neha_wawalkarneha_wawalkar Posts: 5Questions: 2Answers: 0

    hey kevin, I have already seen the thread that you have suggested. but what m doing is, I have used colvis button to hide particular columns before exporting. and now on hiding, the column indices that I have got from var rightColumns = this.datatable.columns('thead th.text-right'); remains the same as it was before hiding. which is causing me a problem of array index

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.