Class
RadDataPager

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data")]
public class RadDataPager : Control

Inheritance: objectRadDataPager

Constructors

RadDataPager()

Initializes a new instance of the RadDataPager class.

Declaration

cs-api-definition
public RadDataPager()

Fields

AutoEllipsisModeProperty

Identifies the AutoEllipsisMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutoEllipsisModeProperty

Field Value

DependencyProperty

CanChangePageProperty

Identifies the CanChangePage dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanChangePageProperty

Field Value

DependencyProperty

The identifier for the CanChangePage dependency property.

CanMoveToFirstPageProperty

Identifies the CanMoveToFirstPage dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanMoveToFirstPageProperty

Field Value

DependencyProperty

The identifier for the CanMoveToFirstPage dependency property.

CanMoveToLastPageProperty

Identifies the CanMoveToLastPage dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanMoveToLastPageProperty

Field Value

DependencyProperty

The identifier for the CanMoveToLastPage dependency property.

CanMoveToNextPageProperty

Identifies the CanMoveToNextPage dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanMoveToNextPageProperty

Field Value

DependencyProperty

The identifier for the CanMoveToNextPage dependency property.

CanMoveToPreviousPageProperty

Identifies the CanMoveToPreviousPage dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanMoveToPreviousPageProperty

Field Value

DependencyProperty

The identifier for the CanMoveToPreviousPage dependency property.

DisplayModeProperty

Identifies the DisplayMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayModeProperty

Field Value

DependencyProperty

IsTotalItemCountFixedProperty

Identifies the IsTotalItemCountFixed dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsTotalItemCountFixedProperty

Field Value

DependencyProperty

ItemCountProperty

Identifies the ItemCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemCountProperty

Field Value

DependencyProperty

NumericButtonCountProperty

Identifies the NumericButtonCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty NumericButtonCountProperty

Field Value

DependencyProperty

NumericButtonStyleProperty

Identifies the NumericButtonStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty NumericButtonStyleProperty

Field Value

DependencyProperty

PageCountProperty

Identifies the PageCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PageCountProperty

Field Value

DependencyProperty

PageIndexProperty

Identifies the PageIndex dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PageIndexProperty

Field Value

DependencyProperty

PageSizeProperty

Identifies the PageSize dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PageSizeProperty

Field Value

DependencyProperty

PagedSourceProperty

Identifies the PagedSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PagedSourceProperty

Field Value

DependencyProperty

SourceProperty

Identifies the Source dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

TextBoxStyleProperty

Identifies the TextBoxStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextBoxStyleProperty

Field Value

DependencyProperty

Properties

AutoEllipsisMode

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

Declaration

cs-api-definition
public AutoEllipsisModes AutoEllipsisMode { get; set; }

Property Value

AutoEllipsisModes

CanChangePage

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

Declaration

cs-api-definition
public bool CanChangePage { get; }

Property Value

bool

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

CanMoveToFirstPage

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

Declaration

cs-api-definition
public bool CanMoveToFirstPage { get; }

Property Value

bool

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

CanMoveToLastPage

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

Declaration

cs-api-definition
public bool CanMoveToLastPage { get; }

Property Value

bool

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

CanMoveToNextPage

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

Declaration

cs-api-definition
public bool CanMoveToNextPage { get; }

Property Value

bool

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

CanMoveToPreviousPage

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

Declaration

cs-api-definition
public bool CanMoveToPreviousPage { get; }

Property Value

bool

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

DisplayMode

Gets or sets the pager display mode.

Declaration

cs-api-definition
public PagerDisplayModes DisplayMode { get; set; }

Property Value

PagerDisplayModes

The pager display mode.

IsTotalItemCountFixed

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

Declaration

cs-api-definition
public bool IsTotalItemCountFixed { get; set; }

Property Value

bool

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

ItemCount

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

Declaration

cs-api-definition
public int ItemCount { get; set; }

Property Value

int

The item count.

NumericButtonCount

Gets or sets the numeric button count.

Declaration

cs-api-definition
public int NumericButtonCount { get; set; }

Property Value

int

The numeric button count.

NumericButtonStyle

Gets or sets the numeric and ellipsis buttons style.

Declaration

cs-api-definition
public Style NumericButtonStyle { get; set; }

Property Value

Style

The numeric button style.

PageCount

Gets the current number of pages in the .

Declaration

cs-api-definition
public int PageCount { get; }

Property Value

int

The page count.

PageIndex

Gets or sets the current in the .

Declaration

cs-api-definition
public int PageIndex { get; set; }

Property Value

int

The index of the page.

PageSize

Gets or sets the current in the .

Declaration

cs-api-definition
public int PageSize { get; set; }

Property Value

int

The page size.

PagedSource

Gets the paged source.

Declaration

cs-api-definition
public IPagedCollectionView PagedSource { get; }

Property Value

IPagedCollectionView

The paged source.

Remarks

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

Source

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

Declaration

cs-api-definition
public IEnumerable Source { get; set; }

Property Value

IEnumerable

The data collection associated with this pager control.

TextBoxStyle

Gets or sets the page text box style.

Declaration

cs-api-definition
public Style TextBoxStyle { get; set; }

Property Value

Style

The page text box style.

Methods

BeginInit()

Starts the initialization process for this element.

Declaration

cs-api-definition
public override void BeginInit()

EndInit()

Indicates that the initialization process for the element is complete.

Declaration

cs-api-definition
public override void EndInit()

Exceptions

InvalidOperationException

was called without having previously been called on the element.

MoveToFirstPage()

Sets the first page as the current page.

Declaration

cs-api-definition
public bool MoveToFirstPage()

Returns

bool

true if this operation was successful; otherwise, false.

MoveToLastPage()

Sets the last page as the current page.

Declaration

cs-api-definition
public bool MoveToLastPage()

Returns

bool

true if this operation was successful; otherwise, false.

MoveToNextPage()

Moves to the page after the current page.

Declaration

cs-api-definition
public bool MoveToNextPage()

Returns

bool

true if this operation was successful; otherwise, false.

MoveToPage(int)

Moves to the page at the specified index.

Declaration

cs-api-definition
public bool MoveToPage(int pageIndex)

Parameters

pageIndex

int

The index of the page to move to.

Returns

bool

true if this operation was successful; otherwise, false.

MoveToPreviousPage()

Moves to the page before the current page.

Declaration

cs-api-definition
public bool MoveToPreviousPage()

Returns

bool

true if this operation was successful; otherwise, false.

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The class-specific AutomationPeer subclass to return.

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnPageIndexChanged(PageIndexChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPageIndexChanged(PageIndexChangedEventArgs args)

Parameters

args

PageIndexChangedEventArgs

The PageIndexChangedEventArgs instance containing the event data.

OnPageIndexChanging(PageIndexChangingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPageIndexChanging(PageIndexChangingEventArgs args)

Parameters

args

PageIndexChangingEventArgs

The PageIndexChangingEventArgs instance containing the event data.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

Events

PageIndexChanged

Occurs when the page index has changed.

Declaration

cs-api-definition
public event EventHandler<PageIndexChangedEventArgs> PageIndexChanged

Event Value

EventHandler<PageIndexChangedEventArgs>

PageIndexChanging

Occurs when the page index is about to change.

Declaration

cs-api-definition
public event EventHandler<PageIndexChangingEventArgs> PageIndexChanging

Event Value

EventHandler<PageIndexChangingEventArgs>