Skip to main content

DataGridRemoteOperationsBuilder.Sorting(Boolean) Method

Specifies whether or not sorting must be performed on the server side. Mirrors the client-side sorting option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridRemoteOperationsBuilder Sorting(
    bool value
)

Parameters

Name Type Description
value Boolean

The option value.

Returns

Type Description
DataGridRemoteOperationsBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().DataGrid()
    .RemoteOperations(operations => operations
        .Sorting(true)
    )
)
See Also