New to Telerik UI for WPFStart a free 30-day trial

Provides a user interface for paging through a collection of data.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
[TelerikToolboxCategory("Data")]
public class RadDataPager : Control

Inheritance: objectRadDataPager

Constructors

Initializes a new instance of the RadDataPager class.

C#
public RadDataPager()

Fields

AutoEllipsisModeProperty

DependencyProperty

Identifies the AutoEllipsisMode dependency property.

C#
public static readonly DependencyProperty AutoEllipsisModeProperty

CanChangePageProperty

DependencyProperty

Identifies the CanChangePage dependency property.

C#
public static readonly DependencyProperty CanChangePageProperty
Field Value:

The identifier for the CanChangePage dependency property.

CanMoveToFirstPageProperty

DependencyProperty

Identifies the CanMoveToFirstPage dependency property.

C#
public static readonly DependencyProperty CanMoveToFirstPageProperty
Field Value:

The identifier for the CanMoveToFirstPage dependency property.

CanMoveToLastPageProperty

DependencyProperty

Identifies the CanMoveToLastPage dependency property.

C#
public static readonly DependencyProperty CanMoveToLastPageProperty
Field Value:

The identifier for the CanMoveToLastPage dependency property.

CanMoveToNextPageProperty

DependencyProperty

Identifies the CanMoveToNextPage dependency property.

C#
public static readonly DependencyProperty CanMoveToNextPageProperty
Field Value:

The identifier for the CanMoveToNextPage dependency property.

Identifies the CanMoveToPreviousPage dependency property.

C#
public static readonly DependencyProperty CanMoveToPreviousPageProperty
Field Value:

The identifier for the CanMoveToPreviousPage dependency property.

DisplayModeProperty

DependencyProperty

Identifies the DisplayMode dependency property.

C#
public static readonly DependencyProperty DisplayModeProperty

Identifies the IsTotalItemCountFixed dependency property.

C#
public static readonly DependencyProperty IsTotalItemCountFixedProperty

ItemCountProperty

DependencyProperty

Identifies the ItemCount dependency property.

C#
public static readonly DependencyProperty ItemCountProperty

NumericButtonCountProperty

DependencyProperty

Identifies the NumericButtonCount dependency property.

C#
public static readonly DependencyProperty NumericButtonCountProperty

NumericButtonStyleProperty

DependencyProperty

Identifies the NumericButtonStyle dependency property.

C#
public static readonly DependencyProperty NumericButtonStyleProperty

PageCountProperty

DependencyProperty

Identifies the PageCount dependency property.

C#
public static readonly DependencyProperty PageCountProperty

PagedSourceProperty

DependencyProperty

Identifies the PagedSource dependency property.

C#
public static readonly DependencyProperty PagedSourceProperty

PageIndexProperty

DependencyProperty

Identifies the PageIndex dependency property.

C#
public static readonly DependencyProperty PageIndexProperty

PageSizeProperty

DependencyProperty

Identifies the PageSize dependency property.

C#
public static readonly DependencyProperty PageSizeProperty

SourceProperty

DependencyProperty

Identifies the Source dependency property.

C#
public static readonly DependencyProperty SourceProperty

TextBoxStyleProperty

DependencyProperty

Identifies the TextBoxStyle dependency property.

C#
public static readonly DependencyProperty TextBoxStyleProperty

Properties

Gets or sets a value indicating whether ellipsis will be shown.

C#
public AutoEllipsisModes AutoEllipsisMode { get; set; }

Gets a value that indicates whether the user can move to another page.

C#
public bool CanChangePage { get; }
Property Value:

true if this user can move to another page; otherwise, false.

Gets a value that indicates whether the user can move to the first page.

C#
public bool CanMoveToFirstPage { get; }
Property Value:

true if this user can move to the first page; otherwise, false.

Gets a value that indicates whether the user can move to the last page.

C#
public bool CanMoveToLastPage { get; }
Property Value:

true if this user can move to the last page; otherwise, false.

Gets a value that indicates whether the user can move to the next page.

C#
public bool CanMoveToNextPage { get; }
Property Value:

true if this user can move to the next page; otherwise, false.

Gets a value that indicates whether the user can move to the previous page.

C#
public bool CanMoveToPreviousPage { get; }
Property Value:

true if this user can move to the previous page; otherwise, false.

Gets or sets the pager display mode.

C#
public PagerDisplayModes DisplayMode { get; set; }
Property Value:

The pager display mode.

Gets or sets a value that indicates whether or not the total number of items in the collection is fixed.

C#
public bool IsTotalItemCountFixed { get; set; }
Property Value:

true if the total item count fixed; otherwise, false.

Gets or sets the current number of known items in the .

C#
public int ItemCount { get; set; }
Property Value:

The item count.

Gets or sets the numeric button count.

C#
public int NumericButtonCount { get; set; }
Property Value:

The numeric button count.

Gets or sets the numeric and ellipsis buttons style.

C#
public Style NumericButtonStyle { get; set; }
Property Value:

The numeric button style.

Gets the current number of pages in the .

C#
public int PageCount { get; }
Property Value:

The page count.

Gets the paged source.

C#
public IPagedCollectionView PagedSource { get; }
Property Value:

The paged source.

Remarks:

Binding the ItemsSource property of an ItemsControl to the PagedSource property will enable paging for this control through RadDataPager.

Gets or sets the current in the .

C#
public int PageIndex { get; set; }
Property Value:

The index of the page.

Gets or sets the current in the .

C#
public int PageSize { get; set; }
Property Value:

The page size.

Gets or sets the data collection that the RadDataPager controls paging for.

C#
public IEnumerable Source { get; set; }
Property Value:

The data collection associated with this pager control.

Gets or sets the page text box style.

C#
public Style TextBoxStyle { get; set; }
Property Value:

The page text box style.

Methods

Starts the initialization process for this element.

C#
public override void BeginInit()

Indicates that the initialization process for the element is complete.

C#
public override void EndInit()
Exceptions:

InvalidOperationException

was called without having previously been called on the element.

Sets the first page as the current page.

C#
public bool MoveToFirstPage()
Returns:

bool

true if this operation was successful; otherwise, false.

Sets the last page as the current page.

C#
public bool MoveToLastPage()
Returns:

bool

true if this operation was successful; otherwise, false.

Moves to the page after the current page.

C#
public bool MoveToNextPage()
Returns:

bool

true if this operation was successful; otherwise, false.

Moves to the page at the specified index.

C#
public bool MoveToPage(int pageIndex)
Parameters:pageIndexint

The index of the page to move to.

Returns:

bool

true if this operation was successful; otherwise, false.

Moves to the page before the current page.

C#
public bool MoveToPreviousPage()
Returns:

bool

true if this operation was successful; otherwise, false.

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The class-specific AutomationPeer subclass to return.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Raises the event.

C#
protected virtual void OnPageIndexChanged(PageIndexChangedEventArgs args)
Parameters:argsPageIndexChangedEventArgs

The PageIndexChangedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPageIndexChanging(PageIndexChangingEventArgs args)
Parameters:argsPageIndexChangingEventArgs

The PageIndexChangingEventArgs instance containing the event data.

Resets the theme.

C#
public void ResetTheme()

Events

Occurs when the page index has changed.

C#
public event EventHandler<PageIndexChangedEventArgs> PageIndexChanged

Occurs when the page index is about to change.

C#
public event EventHandler<PageIndexChangingEventArgs> PageIndexChanging