Getting a header cell element from the grid

Posted by: georgekam96 on 2 October 2019, 5:51 am EST

    • Post Options:
    • Link

    Posted 2 October 2019, 5:51 am EST

    Hello!

    I would like to know if there is a way to get a header cell element by providing its exact location in the grid, meaning row and column. In the GridPanel class, there is a ‘getCellElement’ method, which works, only, for data cells. I’m wondering if a similar function exists for the header cells.

  • Posted 3 October 2019, 12:51 am EST

    Hi George,

    To get the reference of the GridPanel of the column headers of the FlexGrid, you may use the columnHeaders property, This property is an instance of GridPanel class that contains information about the column headers panel. Then, you may simply use the getCellElement method to get the cell element.

    Note that if the cell is not visible of the DOM, then the getCellElement will return null.

    API Reference:

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels