InterfaceIPagedCollectionView
Provides paging functionality for a collection view.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public interface IPagedCollectionView
Properties
CanChangePage
Gets a value that indicates whether the PageIndex value is allowed to change.
IsPageChanging
Gets a value that indicates whether a page index change is in process.
Declaration
bool IsPageChanging { get; }
Property Value
true if the page index is changing; otherwise, false.
ItemCount
Gets the minimum number of items known to be in the source collection.
Declaration
int ItemCount { get; }
Property Value
The minimum number of items known to be in the source collection.
PageIndex
Gets the zero-based index of the current page.
Declaration
int PageIndex { get; }
Property Value
The zero-based index of the current page.
PageSize
Gets or sets the number of items to display on a page.
Declaration
int PageSize { get; set; }
Property Value
The number of items to display on a page.
TotalItemCount
Gets the total number of items in the source collection.
Declaration
int TotalItemCount { get; }
Property Value
The total number of items in the source collection, or -1 if the total number is unknown.
Methods
MoveToFirstPage()
Sets the first page as the current page.
Declaration
bool MoveToFirstPage()
Returns
true if the operation was successful; otherwise, false.
MoveToLastPage()
Sets the last page as the current page.
Declaration
bool MoveToLastPage()
Returns
true if the operation was successful; otherwise, false.
MoveToNextPage()
Moves to the page after the current page.
Declaration
bool MoveToNextPage()
Returns
true if the operation was successful; otherwise, false.
MoveToPage(int)
Requests a page move to the page at the specified index.
MoveToPreviousPage()
Moves to the page before the current page.
Declaration
bool MoveToPreviousPage()
Returns
true if the operation was successful; otherwise, false.
Events
PageChanged
Occurs when the PageIndex has changed.
Declaration
event EventHandler<EventArgs> PageChanged
Event Value
PageChanging
Occurs when the PageIndex is changing.
Declaration
event EventHandler<PageChangingEventArgs> PageChanging
Event Value