Access Delete Key Action on Flexgrid

Posted by: ehh on 4 October 2022, 8:20 pm EST

    • Post Options:
    • Link

    Posted 4 October 2022, 8:20 pm EST

    Is there a way to define what happens when the delete key is pressed on the Flexgrid component.

    I would like to define a specific method to run when the delete key is pressed, when the user have selected a cell.

    Best Regards Emil

  • Posted 10 October 2022, 3:14 am EST

    Hi,

    We are sorry for the inconvenience but for now, there are no direct properties for this. We have forwarded this to the concerned team with the internal tracking id C1-5172.

    In the meantime, we may wrap the FlexGrid with a Div and handle the keydown event for the DIV and prevent the keyboard action from JS code.

    Please refer to the attached sample for reference.

    Regards,

    Manish Gupta

    FlexGrid__Del_Key_Custom.zip

  • Posted 11 October 2022, 6:01 pm EST

    Hello Manish,

    This also removes the edit function from the grid, which is needed. I will see if I can come up with a solution.

    Best Regards.

    Emil

  • Posted 12 October 2022, 2:40 am EST

    Hi Emil,

    Please note that there is no condition check for Del key press. It can be done by adding the condition check if the delete key is pressed, we will prevent further action otherwise it will work as normal.

    Regards,

    Manish Gupta

Need extra support?

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

Learn More

Forum Channels