OnNavigationFocusHandler
Description
An OnNavigationFocusHandler
is a type that defines a function which will evaluate if the focus-in, resulting of a navigation, can start the edit mode. The EditTriggers
.OnNavigationFocus
provides the common navigation functions.
Arguments
Parameters |
Type |
Description |
---|---|---|
context |
The context of the navigation and focus. |
|
[output] |
boolean |
true when the navigation and focus can start the edit mode, otherwise false. |
Example
In this example, the EditTriggers.onNavigationFocus.tab
function is set as an OnNavigationFocusHandler
for the EditTriggers
.OnNavigationFocus
. It will trigger the edit mode when a dataCell
gets focused, resulting of a tab key navigation.
const editTriggers = {
onNavigationFocus: Xceed.EditTriggers.onNavigationFocus.tab
};
This editTriggers
object should be set in the DataGridOptions
.editTriggers
property.