css styles not applied on export

css styles not applied on export

maromaro Posts: 2Questions: 1Answers: 0

whenever i export a datatable, the style classes within the table are not applied. Any help

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @maro ,

    Yep, that depends on each of the export types, for example PDF is different to Excel. You need to create the style you want for each type, see here for PDF for example.

    Cheers,

    Colin

  • maromaro Posts: 2Questions: 1Answers: 0

    thanks for your suggestion but that did not work.
    The table i have has got some css references. But whenever i export, those styles are ommited.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    That's right, the styles only apply to the DataTable, not the exported data - styles are different for each export type so they need to define manually yourself in those export options.

    C

This discussion has been closed.