1 Star 0 Fork 0

QianXun-Studio / Grid.Blazor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Keyboard_navigation.md 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
Gustavo Navarro 提交于 2020-04-20 22:07 . Add OData documentation

Blazor client-side with OData back-end

Keyboard navigation

Index

Users can enable keyboard navigation between pages using the SetKeyboard method of the GridODataClient object:

    var client = new GridODataClient<Order>(HttpClient, url, query, false, "ordersGrid", columns, 10).SetKeyboard(true);

The default value is false.

These are the keys to be used:

  • [Ctrl] + [Left] and [Ctrl] + [Right] arrows navigate between pages
  • [Ctrl] + [Home] key goes to the first page
  • [Ctrl] + [End] key goes to the last page
  • [Ctrl] + [Up] and [Ctrl] + [Down] arrows navigate from one row to another for grids where rows are selectable. It doesn´t work when multiselectable is enabled.
  • [Tab] key navigates among elements of a filter widget when it is visible
  • [Esc] key minimises a filter widget when it is visible
  • [Ctrl] +[Backspace] clear all filters

It's possible to change the modifier key used for keyboard navigation using the SetModifierKey method of the GridClient object:

    var client = new GridODataClient<Order>(HttpClient, url, query, false, "ordersGrid", columns, 10)
        .SetKeyboard(true).SetModifierKey(ModifierKey.ShiftKey);

The parameter options of the SetModifierKey method are:

  • ModifierKey.CtrlKey (default value)
  • ModifierKey.ShiftKey
  • ModifierKey.AltKey
  • ModifierKey.MetaKey

Keep in mind that the last 2 options can collide with the modifier keys of the browser. The recommended options are ModifierKey.CtrlKey and ModifierKey.ShiftKey.

<- GridBlazor configuration | Paging ->

1
https://gitee.com/fan0217/Grid.Blazor.git
git@gitee.com:fan0217/Grid.Blazor.git
fan0217
Grid.Blazor
Grid.Blazor
master

搜索帮助