Interface IPagedCollectionView
Namespace: Telerik.WinControls.Data
Assembly: Telerik.WinControls.dll
Syntax
public interface IPagedCollectionView
Properties
CanChangePage
Gets a value that indicates whether the IPagedCollectionView.PageIndex value is allowed to change.
Declaration
bool CanChangePage { get; }
Property Value
System.Boolean
true if the IPagedCollectionView.PageIndex value is allowed to change; otherwise, false. |
CanPage
Gets a value indicating whether this data view can be paginated.
Declaration
bool CanPage { get; }
Property Value
System.Boolean
|
IsPageChanging
Gets a value that indicates whether a page index change is in process.
Declaration
bool IsPageChanging { get; }
Property Value
System.Boolean
true if the page index is changing; otherwise, false. |
ItemCount
Gets the total number of items in the source collection.
Declaration
int ItemCount { get; }
Property Value
System.Int32
The total number of items in the source collection, or -1 if the total number is unknown. |
PageIndex
Gets the zero-based index of the current page.
Declaration
int PageIndex { get; }
Property Value
System.Int32
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
System.Int32
The number of items to display on a page. |
Methods
MoveToFirstPage()
Sets the first page as the current page.
Declaration
bool MoveToFirstPage()
Returns
System.Boolean
true if the operation was successful; otherwise, false. |
MoveToLastPage()
Sets the last page as the current page.
Declaration
bool MoveToLastPage()
Returns
System.Boolean
true if the operation was successful; otherwise, false. |
MoveToNextPage()
Moves to the page after the current page.
Declaration
bool MoveToNextPage()
Returns
System.Boolean
true if the operation was successful; otherwise, false. |
MoveToPage(Int32)
Requests a page move to the page at the specified index.
Declaration
bool MoveToPage(int pageIndex)
Parameters
System.Int32
pageIndex
The index of the page to move to. |
Returns
System.Boolean
true if the operation was successful; otherwise, false. |
MoveToPreviousPage()
Moves to the page before the current page.
Declaration
bool MoveToPreviousPage()
Returns
System.Boolean
true if the operation was successful; otherwise, false. |
Events
PageChanged
Occurs when the IPagedCollectionView.PageIndex has changed.
Declaration
event EventHandler<EventArgs> PageChanged
Event Type
System.EventHandler<System.EventArgs>
|
PageChanging
Occurs before the IPagedCollectionView.PageIndex is changed.
Declaration
event EventHandler<PageChangingEventArgs> PageChanging
Event Type
System.EventHandler<PageChangingEventArgs>
|