Skip to main content
All docs
V23.2
.NET 6.0+

XpoDataView.UseServerSideSorting Field

Indicates that the sort operation is executed on the server side before the result set is trimmed according to the TopReturnedObjects property.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Xpo

Declaration

public bool UseServerSideSorting

Field Value

Type Description
Boolean

true if the sort operation is executed on the server side; false if the sort operation is executed on the client side. The default value equals the DefaultUseServerSideSorting static field’s value.

Remarks

You can specify the UseServerSideSorting field in a List View Controller as demonstrated below:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Xpo;
// ...
public class CustomizeListViewController : ViewController<ListView> {
    protected override void OnActivated() {
        base.OnActivated();
        var xpoDataView = View.CollectionSource.Collection as XpoDataView;
        if (xpoDataView != null) {
            xpoDataView.UseServerSideSorting = false;
        }
    }
}

If you want to specify this option globally for all List Views, use the static DefaultUseServerSideSorting field instead.

Note

With server-side sorting, you can use only persistent and aliased properties in the Sorting criteria. With client-side sorting, you can also use column names.

See Also