Flexgrid export to pdf add multiple line page header

Posted by: networknotify on 30 October 2024, 3:26 pm EST

    • Post Options:
    • Link

    Posted 30 October 2024, 3:26 pm EST

    So far I’m only able to display on 2 lines for a page header how can I increase that. More that 2 line will display on the grid.

  • Posted 31 October 2024, 9:04 am EST

    Hi,

    As per our understanding, you are exporting flexgrid to pdf, and you have multiple lines on the header of the page, and the header lines are overlapping with the grid while exporting, if so, then you can set the ‘height’ property of the header in page settings to set a height for header on all pages.

    Here’s a sample for your reference - https://stackblitz.com/edit/js-kbsu8h?file=index.js

    API reference - https://developer.mescius.com/wijmo/api/classes/wijmo_pdf.pdfrunningtitle.html#height

    In case, if we missed something, please let us know.

    Regards

  • Posted 31 October 2024, 10:47 am EST

    That worked.

    Another issue when it comes to formatting currency cell.

    I need negative number to display as

    -$1,234

    format - ‘c0’ → ($1,234)

    format - ‘$#,###’ → -1,234

    Any ideas

    Thanks

  • Posted 4 November 2024, 2:28 am EST

    Hi,

    In this case, you can use the cellTemplates on the column to modify the text displayed in the cell and show the current format as per your requirements. Also, to export the same text in PDF file, you’ll have to use a custom ‘formatItem’ function to modify the text while exporting.

    Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/js-rsjxuw?file=index.js

    Here’s the API link for cellTemplates property of the column, if needed - https://developer.mescius.com/wijmo/api/classes/wijmo_grid.column.html#celltemplate

    In case, you face any issues, please let us know.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels