Skip to main content

TreeListKeyboardNavigationBuilder.EditOnKeyPress(Boolean) Method

Specifies whether users can enter a new cell value on a key press. Applies if editing.mode is 'cell' or 'batch'. Mirrors the client-side editOnKeyPress option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public TreeListKeyboardNavigationBuilder EditOnKeyPress(
    bool value
)

Parameters

Name Type Description
value Boolean

The option value.

Returns

Type Description
TreeListKeyboardNavigationBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().TreeList()
    .KeyboardNavigation(navigation => navigation
        .EditOnKeyPress(true)
    )
)
See Also