Disable Flexgrid Default Key Combo Actions

Posted by: johnny.su on 13 March 2018, 2:03 am EST

  • Posted 13 March 2018, 2:03 am EST

    Hi,

    Is there an easier way to disable Flexgrid’s default key combination actions without having to have a keydown listener on the grid and calling preventDefault and stopPropagation?

    ie.

    Shift + Space Select row

    Control + Space Select column

    Regards,

    Johnny

  • Posted 13 March 2018, 5:57 am EST

    Hi,

    Sorry but currently there is no way to disable keyboard shortcuts without using keydown listener.

  • Posted 13 March 2018, 6:01 am EST

    Due to the internal design design of grid you cannot apply a directive to flex-grid-column-itself.

    Instead what you can do is create a directive for flexgrid that will take care of can-hide for grid-columns.

    Please refer to updated fiddle here:-http://jsfiddle.net/LvowLtbv/1/

Need extra support?

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

Learn More

Forum Channels