Skip to main content
A newer version of this page is available. .

DataGridKeyboardNavigationBuilder.EnterKeyAction(GridEnterKeyAction) Method

Mirrors the client-side enterKeyAction option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridKeyboardNavigationBuilder EnterKeyAction(
    GridEnterKeyAction value
)

Parameters

Name Type Description
value GridEnterKeyAction

The option value.

Returns

Type Description
DataGridKeyboardNavigationBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().DataGrid()
    .KeyboardNavigation(navigation => navigation
        .EnterKeyAction(GridEnterKeyAction.MoveFocus)
    )
)
See Also