Column header for wijmo pivot grid

Posted by: ykumar23 on 26 October 2018, 2:43 am EST

    • Post Options:
    • Link

    Posted 26 October 2018, 2:43 am EST - Updated 3 October 2022, 8:19 pm EST

    Hello,

    I have a wijmo pivot grid which has hierarchical headers. I need to get the immediate column header of a clicked cell in the grid.

    Please find the attached screen shot.

    For example, in the attachment if we click on the cell with value ‘19’ I need to get the ‘Sales’ column header.

  • Posted 26 October 2018, 4:15 am EST

    Hi,

    You may use first use pivot.hitTest() method to get the column index which was clicked and then use pivot.columnHeaders.getCellData() method to get the header’s data.

    Please refer to the following sample which demonstrates the same: https://stackblitz.com/edit/angular-mdrew4?file=app%2Fapp.component.ts

    ~Sharad

Need extra support?

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

Learn More

Forum Channels