Adding PrimeNG P-datatable component in FlexSheet

Posted by: yashmittal0507 on 29 May 2018, 3:32 am EST

    • Post Options:
    • Link

    Posted 29 May 2018, 3:32 am EST

    Hi,

    I want to add a P-datatable component provided by a different UI library called Prime NG in flexsheet cell. I am trying using item formatter in the below mentioned code:

    if( flexSheet.columns[c][‘pAutocomplete’] && r != 0){

    cell.innerHTML = “<p-dropdown [options]=‘flexSheet.columns[c].dropdownResponse’>”;

    }

    But it is not working.Please can you provide some reference in this regard.

    Thanks,

    Yash Mittal

  • Posted 30 May 2018, 2:34 am EST

    Hello Yash,

    We are sorry, as you know Angular 2 do not have $compile equivalent. Hence, you could not place a Component in innerHTML since it do not compile to corresponding HTML.

    Please refer to the following forum post to add custom element in FlexSheet cells :

    https://www.grapecity.com/en/forums/wijmo/flexsheet-datamaps---how-t

    ~Manish

Need extra support?

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

Learn More

Forum Channels