Skip to main content

DataGridSelectionBuilder.SelectAllMode(SelectAllMode) Method

Specifies the mode in which all the records are selected. Applies only if selection.allowSelectAll is true. Mirrors the client-side selectAllMode option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridSelectionBuilder SelectAllMode(
    SelectAllMode value
)

Parameters

Name Type Description
value SelectAllMode

The option value.

Returns

Type Description
DataGridSelectionBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().DataGrid()
    .Selection(selection => selection
        .SelectAllMode(SelectAllMode.AllPages)
    )
)
See Also