Frozen cells and events in IE

Posted by: pkim on 13 April 2020, 11:56 am EST

    • Post Options:
    • Link

    Posted 13 April 2020, 11:56 am EST

    Hi,

    I am freezing columns in a FlexGrid which is working in both Chrome and Internet Explorer (IE). But I noticed attached events (e.g. dbkclick, hover, etc.) are only working for those frozen cells in Chrome, and aren’t triggering in IE. From searching the docs / forums, it seems this is intended behavior due to cloneFrozenCells (reduce scroll flicker). Thus the events start working if I set cloneFrozenCells to false, but scrolling introduces flickering.

    Is there no option to carry over events to the cloned cells? Any plans in the future?

  • Posted 14 April 2020, 12:16 am EST

    Hi Paul,

    There is way to attach events on the frozen cells of the FlexGrid. Instead of attaching the event directly on the cells, you can add a dblclick event on the whole FlexGrid and check whether the target is the required cell like this:

    grid.hostElement.addEventListener('click', function (e) {
    
                if (e.target.tagName == 'A') {
    
                    alert();
    
                }
    
    });
    

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels