Wijmo Flexsheet: Add/Remove row-header checkbox based on internal setting

Posted by: chetan.shetty on 8 October 2021, 7:18 am EST

    • Post Options:
    • Link

    Posted 8 October 2021, 7:18 am EST

    As the title suggests, I want to learn how to add or remove checkboxes at row-header based on an internal setting.

    Eg. I have a requirement where I need two tabs and both of them use flexsheet but I don’t initialize the sheet again, I only update the loaded rows. I use the below code to add checkboxes at row-header level which was recommended in another post https://www.grapecity.com/forums/wijmo/flexsheet-checkbox-in-rowh. Kindly help me in implementing this in my product. The Wijmo version that I use is 5.20183.568

  • Posted 11 October 2021, 6:17 am EST

    Hello,

    As per my understanding, you want to add and remove the checkboxes from the rowHeaders based on which tab is opened, if so then you may add your condition for the tabIndex inside the cellFactory (where the checkboxes are added into the rowHeaders of FlexSheet). I have prepared a simple demonstration for the same, please refer to the sample link below:

    https://stackblitz.com/edit/angular-xu1kxf?file=src%2Fapp%2Fapp.component.ts

    In the sample above, the first tab has the checkboxes attached to the grid rowHeaders while the second tab doesn’t, if you still face any issues or have any doubts do 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