Skip to main content
All docs
V25.1
  • .NET 8.0+

    DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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.v25.1.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