How to implement shortcuts in Flexgrid?

Posted by: mohit.saxena on 20 November 2018, 5:49 pm EST

    • Post Options:
    • Link

    Posted 20 November 2018, 5:49 pm EST

    Hi Support,

    We are trying to add some shortcut keys on Wijmo Flexgrid, such as:

    1. Scroll to the top/bottom (ctrl+arrow, or cmd+arrow)
    2. Scroll to the top/bottom with selection (ctrl-shift-arrow, or cmd-shift-arrow)

    I don’t think Flexgrid has these shortcuts by default. Is there a quick way doing this?

  • Posted 21 November 2018, 1:53 am EST

    Hi,

    FlexGrid provides these shortcuts with a different combinations as follows:

    1). Scroll to top/bottom: Alt + PageUp/PageDown

    2). Scroll to top/bottom with the selection: Alt + Shift + PageUp/PageDown

    You may find a list of all available shortcuts here: https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.FlexGrid.Class.html#select

    If you would like these shortcuts to be ctrl+arrow or ctrl+shift+arrow instead then you may handle keydown event and use flexGrid.select() method to achieve the required functionality.

    Please refer to the following sample which demonstrates the same:

    https://stackblitz.com/edit/angular-hc9hwa?file=app%2Fapp.component.ts

    ~Sharad

  • Posted 21 November 2018, 2:02 am EST

    Cool. Thanks a lot! The sample code is exactly what we need :slight_smile:

Need extra support?

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

Learn More

Forum Channels