How to get back column header name and column details from a button?

Posted by: ambarish.banerjee12 on 3 June 2020, 12:26 pm EST

  • Posted 3 June 2020, 12:26 pm EST

    I want to create a button on the column header and on its click I want to know whats the name of the column that was clicked. The button in this case opens a popup which i would later modify. I am able to open popup but cant send the column header name back.

  • Posted 4 June 2020, 2:06 am EST

    Till now I have done this : http://jsfiddle.net/z2v3a75L/49/

    I have used the format item to insert the buttons in the column header of the flex sheet . I now want to use the eventListener on click to generate the pop up. But the popup is not getting generated. Please point out what I am doing wrong

  • Posted 4 June 2020, 2:19 am EST

    Hi,

    There is a hitTest method in FlexSheet that can be used to provide information about the flexsheet like cellType, column, row, etc at a given point. You can use this to get the current column at which the click event happened. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-lvqdve

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels