FlexGridPdfConverter not exporting formatted data

Posted by: develop on 20 March 2019, 12:02 pm EST

    • Post Options:
    • Link

    Posted 20 March 2019, 12:02 pm EST

    Hi,

    I’m trying to have FlexGridPdfConverter exporting formatted data, using a pipe at some point.

    I tried using it directly but as the usage of template is not supported for obvious reasons, It failed.

    Do you know any way to achieve the goal ?

    Here’s what I tried to do that did not involve a template :

    this.formatItem.addHandler((self, e: GridFormatItemEventArgs) => {
    	e.cell.textContent = this.myPipe.transform(e.cell.textContent);
    }
    

    Thanks in advance !

  • Posted 22 March 2019, 2:04 am EST

    Hi,

    We need to set ‘customCellContent’ options to true during export to export the formatted value. Please refer to the following code snippet and sample demonstrating the same:

    wijmo.grid.pdf.FlexGridPdfConverter.export(theGrid, 'LearnWijmo.pdf', {
          customCellContent: true, // set to true to get custom cell content
    });
    

    https://jsfiddle.net/yhno4v2k/7/

    You may also refer to the following doc for more info on customCellContent option: https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.pdf.IFlexGridDrawSettings.Interface.html#customCellContent

    ~Sharad

  • Posted 22 March 2019, 11:27 am EST

    Works like a charm !

    Thank you for your quick help.

Need extra support?

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

Learn More

Forum Channels