Keyboard handler to Blazor FlexGrid

Posted by: steen.l.knudsen on 13 October 2022, 6:51 pm EST

    • Post Options:
    • Link

    Posted 13 October 2022, 6:51 pm EST

    It is possible to make a keyboard handler for a FlexGrid?

    I need to support that enter key begins to edit the current row and that alt+R will open a dialog to edit the current row.

  • Posted 16 October 2022, 9:17 pm EST - Updated 16 October 2022, 9:34 pm EST

    Hello,

    We are sorry for the inconvenience but for now, there are no direct properties for implementing key handlers to FlexGrid. 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 to perform the required implementation accordingly.

    Furthermore, to start editing on pressing Enter Key, we may use the StartEditingAsync() method of FlexGrid to perform the same. For more information on the same, please refer to the below link:

    https://www.grapecity.com/componentone/docs/blazor/online-blazor/C1.Blazor.Grid~C1.Blazor.Grid.FlexGrid~StartEditingAsync.html





    To perform popup editing on pressing the alt+R key, we may use a similar approach as discussed in the given documentation sample:



    https://www.grapecity.com/componentone/demos/blazor/blazorserverexplorer/FlexGrid/PopupEditing





    Please refer to the attached sample implementing the above-discussed points.





    Blazor_FlexGrid.zip



    Regards,

    Dushyant Sharma

Need extra support?

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

Learn More

Forum Channels