Back to Devexpress

PagedAsyncSource.FetchPageCommand Property

wpf-devexpress-dot-xpf-dot-data-dot-pagedasyncsource.md

latest3.6 KB
Original Source

PagedAsyncSource.FetchPageCommand Property

Gets or sets a command that allows you to fetch page rows.

Namespace : DevExpress.Xpf.Data

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ICommand<FetchPageAsyncArgs> FetchPageCommand { get; set; }
vb
Public Property FetchPageCommand As ICommand(Of FetchPageAsyncArgs)

Property Value

TypeDescription
ICommand<FetchPageAsyncArgs>

A command that allows you to fetch page rows.

|

Remarks

Bind a command to the FetchPageCommand property to maintain a clean MVVM pattern. The command works like a PagedAsyncSource.FetchPage event handler and allows you to specify custom group operations in a ViewModel.

Refer to the following help topic for more information: Fetch Data.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FetchPageCommand property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-wpf-grid-to-data/CS/ViewModel/EFCore/PagedAsyncSource/MainWindow.xaml#L18

xml
<dx:PagedAsyncSource ElementType="local_issues:Issue" KeyProperty="Id"
                     PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
                     GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />

wpf-data-grid-implement-crud-operations/CS/ViewModel/EFCore/PagedAsyncSource/MainWindow.xaml#L30

xml
<dx:PagedAsyncSource ElementType="local_issues:Issue" KeyProperty="Id"
                     PageNavigationMode="ArbitraryWithTotalPageCount" FetchPageCommand="{Binding FetchPageCommand}"
                     GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}" />

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceMVVMSample/MainWindow.xaml#L20

xml
PageNavigationMode="ArbitraryWithTotalPageCount"
FetchPageCommand="{Binding FetchIssuesCommand}"
GetTotalSummariesCommand="{Binding GetTotalSummariesCommand}"

See Also

PagedAsyncSource Class

PagedAsyncSource Members

DevExpress.Xpf.Data Namespace