XpoDataView.DefaultUseServerSideSorting Property
Indicates that the sort operation is executed on the server side before the result set is trimmed according to the TopReturnedObjects property. This property affects all List Views in your application if you do not specify the UseServerSideSorting property for a particular List View.
Namespace: DevExpress.ExpressApp.Xpo
Assembly: DevExpress.ExpressApp.Xpo.v25.2.dll
NuGet Package: DevExpress.ExpressApp.Xpo
Declaration
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
Specify the DefaultUseServerSideSorting property at startup before Views are created. For example, you can use constructors of the WinApplication (MySolution.Win\WinApplication.cs) and BlazorApplication (MySolution.Blazor.Server\BlazorApplication.cs) descendants.
WinForms
File: MySolution.Win\WinApplication.cs.
using DevExpress.ExpressApp.Win;
using DevExpress.ExpressApp.Xpo;
// ...
public partial class MySolutionWindowsFormsApplication : WinApplication {
// ...
public MySolutionWindowsFormsApplication() {
XpoDataView.DefaultUseServerSideSorting = false;
// ...
}
}
The Template Kit enables the DefaultUseServerSideSorting property in new projects. For this purpose, the kit generates new projects with the FrameworkSettings.DefaultSettingsCompatibilityMode property set to Latest.
If you want to specify this option for a specific List View, use the UseServerSideSorting 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.