PagedAsyncSource Class
The asynchronous paged source.
Namespace: DevExpress.Xpf.Data
Assembly: DevExpress.Xpf.Core.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
Remarks
Refer to the Virtual Sources Overview topic to learn more.
Example
- How to Bind to PagedAsyncSource - demonstrates how to bind the GridControl to PagedAsyncSource.
Demo
-
Requires a WPF Subscription. Download
Tutorials
Workflow
The PagedAsyncSource raises events in the UI Thread and uses tasks to process data in parallel Working Threads. You should provide tasks to these events to obtain summaries, rows, etc. Then the UI Thread gets data you fetched.
- (Optional step) The PagedAsyncSource raises the PagedAsyncSource.GetTotalSummaries event. Handle this event and process summaries if you want to show them in the GridControl.
- The PagedAsyncSource raises the PagedAsyncSource.FetchPage event to get the first portion of data.
- When end users navigate to the next page, the PagedAsyncSource raises the PagedAsyncSource.FetchPage event to get the next portion of data.
- (Optional step) When end users apply a filter, the PagedAsyncSource raises the PagedAsyncSource.GetUniqueValues event to get unique values and show them in a drop-down filter.
Inheritance
Object
BindableBase
VirtualSourceBase
PagedSourceBase
PagedAsyncSource
See Also