Wijmo flexgrid with context menu

Posted by: shihalv on 14 September 2017, 11:44 am EST

  • Posted 14 September 2017, 11:44 am EST

    Hi,

    I have a flexgrid and would like to incorporate context menu into it.

    When I right click and open the context menu, i should be able to know which row i right clicked on.

    Is there a way to do this?

  • Posted 11 January 2019, 6:48 am EST

    initializeFlexGrid(grid, event) {

    grid.addEventListener(grid.hostElement, ‘contextmenu’, (e) => {

    const hitMeta = grid.hitTest(e);

    console.log(‘Meta’, hitMeta);

    }

    }

    In the grid ‘initialized’ event attached an add event listener to it which will give details or row, column, colspan, rowspan etc.

Need extra support?

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

Learn More

Forum Channels