Class PagingPanelElement
Represents the visual element for the paging navigation in RadGridView.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class PagingPanelElement : GridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IGridView, IGridViewEventListener
Constructors
PagingPanelElement()
Declaration
public PagingPanelElement()
Fields
ButtonDisplayStyleProperty
ButtonGlyphSizeProperty
FirstPageButtonImageProperty
LastPageButtonImageProperty
NextPageButtonImageProperty
NumericButtonsCountProperty
PreviousPageButtonImageProperty
Properties
ButtonDisplayStyle
Gets or sets a value indicating, whether the buttons will display images or glyphs.
Declaration
public BindingNavigatorButtonDisplayStyle ButtonDisplayStyle { get; set; }
Property Value
|
BindingNavigatorButtonDisplayStyle
|
ButtonGlyphSize
Gets or sets the font size of the glyphs when ButtonDisplayStyle property is set to Glyph.
Declaration
public float ButtonGlyphSize { get; set; }
Property Value
|
System.Single
|
ButtonsStripElement
Gets the buttons strip element.
Declaration
public CommandBarStripElement ButtonsStripElement { get; }
Property Value
|
CommandBarStripElement
The buttons strip element. |
CommandBar
Gets the command bar element.
Declaration
public RadCommandBarElement CommandBar { get; }
Property Value
|
RadCommandBarElement
The command bar. |
CommandBarRowElement
Gets the command bar row element.
Declaration
public CommandBarRowElement CommandBarRowElement { get; }
Property Value
|
CommandBarRowElement
The command bar row element. |
DesiredEvents
Gets the event type(s) this listener needs to process.
Declaration
public GridEventType DesiredEvents { get; }
Property Value
|
GridEventType
|
Implements
DesiredProcessMode
Gets the event process mode for this instance.
Declaration
public GridEventProcessMode DesiredProcessMode { get; }
Property Value
|
GridEventProcessMode
|
Implements
FastBackButton
Gets the button that navigates fast in the backward direction.
Declaration
public CommandBarButton FastBackButton { get; }
Property Value
|
CommandBarButton
The fast back button. |
FastForwardButton
Gets the button that navigates fast in the forward direction.
Declaration
public CommandBarButton FastForwardButton { get; }
Property Value
|
CommandBarButton
The fast forward button. |
FirstButton
Gets the button that navigates to the first page.
Declaration
public CommandBarButton FirstButton { get; }
Property Value
|
CommandBarButton
The first button. |
FirstPageButtonImage
Gets or sets the image of the button that navigates to the first page.
Declaration
public Image FirstPageButtonImage { get; set; }
Property Value
|
System.Drawing.Image
The first page button image. |
GridViewElement
Gets or the RadGridViewElement that owns this view.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
|
RadGridViewElement
|
Implements
LastButton
Gets the button that navigates to the last page.
Declaration
public CommandBarButton LastButton { get; }
Property Value
|
CommandBarButton
The last button. |
LastPageButtonImage
Gets or sets the image of the button that navigates to the last page.
Declaration
public Image LastPageButtonImage { get; set; }
Property Value
|
System.Drawing.Image
The last page button image. |
NextButton
Gets the button that navigates to the next page.
Declaration
public CommandBarButton NextButton { get; }
Property Value
|
CommandBarButton
The next button. |
NextPageButtonImage
Gets or sets the image of the button that navigates next page.
Declaration
public Image NextPageButtonImage { get; set; }
Property Value
|
System.Drawing.Image
The next page button image. |
NumberOfPagesLabel
Gets the label that shows the total number of pages.
Declaration
public CommandBarLabel NumberOfPagesLabel { get; }
Property Value
|
CommandBarLabel
The number of pages label. |
NumericButtonsCount
Gets or sets the number of buttons with numbers in the paging panel.
Declaration
public int NumericButtonsCount { get; set; }
Property Value
|
System.Int32
|
OfPagesLabel
Gets the label that shows the "of" text.
Declaration
public CommandBarLabel OfPagesLabel { get; }
Property Value
|
CommandBarLabel
The of pages label. |
PageLabel
Gets the label that shows the "Page" text.
Declaration
public CommandBarLabel PageLabel { get; }
Property Value
|
CommandBarLabel
The page label. |
PageNumberTextBox
Gets the text box that shows the current page.
Declaration
public CommandBarTextBox PageNumberTextBox { get; }
Property Value
|
CommandBarTextBox
The page number text box. |
PreviousButton
Gets the button that navigates to the previous page.
Declaration
public CommandBarButton PreviousButton { get; }
Property Value
|
CommandBarButton
The previous button. |
PreviousPageButtonImage
Gets or sets the image of the button that navigates to the previous page.
Declaration
public Image PreviousPageButtonImage { get; set; }
Property Value
|
System.Drawing.Image
The previous page button image. |
Priority
Gets the priority of the current instance.
Declaration
public EventListenerPriority Priority { get; }
Property Value
|
EventListenerPriority
|
Implements
ShowButtonsStripElement
Gets or sets whether the strip element holding the page navigation buttons is visible.
Declaration
public bool ShowButtonsStripElement { get; set; }
Property Value
|
System.Boolean
|
ShowFastBackButton
Gets or sets whether the button that navigates fast backward is visible.
Declaration
public bool ShowFastBackButton { get; set; }
Property Value
|
System.Boolean
|
ShowFastForwardButton
Gets or sets whether the button that navigates fast forward is visible.
Declaration
public bool ShowFastForwardButton { get; set; }
Property Value
|
System.Boolean
|
ShowFirstButton
Gets or sets whether the button that navigates to the first page is visible.
Declaration
public bool ShowFirstButton { get; set; }
Property Value
|
System.Boolean
|
ShowLastButton
Gets or sets whether the button that navigates to the last page is visible.
Declaration
public bool ShowLastButton { get; set; }
Property Value
|
System.Boolean
|
ShowNextButton
Gets or sets whether the button that navigates to the next page is visible.
Declaration
public bool ShowNextButton { get; set; }
Property Value
|
System.Boolean
|
ShowNumericalButtons
Gets or sets whether the buttons that navigate to a concrete page are visible.
Declaration
public bool ShowNumericalButtons { get; set; }
Property Value
|
System.Boolean
|
ShowPreviousButton
Gets or sets whether the button that navigates to the previous page is visible.
Declaration
public bool ShowPreviousButton { get; set; }
Property Value
|
System.Boolean
|
ShowTextBoxStripElement
Gets or sets whether the strip element holding the page navigation text box is visible.
Declaration
public bool ShowTextBoxStripElement { get; set; }
Property Value
|
System.Boolean
|
TextBoxStripElement
Gets the text box strip element.
Declaration
public CommandBarStripElement TextBoxStripElement { get; }
Property Value
|
CommandBarStripElement
The text box strip element. |
ViewInfo
Gets the GridViewInfo that this view represents.
Declaration
public GridViewInfo ViewInfo { get; }
Property Value
|
GridViewInfo
|
Implements
Methods
AnalyzeQueue(List<GridViewEvent>)
Allows a listener to examine events queue and optionally to remove/add events.
Declaration
public bool AnalyzeQueue(List<GridViewEvent> events)
Parameters
|
System.Collections.Generic.List<GridViewEvent>
events
|
Returns
|
System.Boolean
True if the listener has actually modified the queue, false otherwise. |
Implements
CreateButtonsStripElementChildElements()
Creates the buttons strip element child elements.
Declaration
protected virtual void CreateButtonsStripElementChildElements()
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateTextBoxStripElementChildElements()
Creates the text box strip element child elements.
Declaration
protected virtual void CreateTextBoxStripElementChildElements()
Detach()
DisposeManagedResources()
Disposes the managed resources of this instance.
Declaration
protected override void DisposeManagedResources()
Overrides
Focus()
Focuses this instance.
Declaration
public override bool Focus()
Returns
|
System.Boolean
|
Overrides
Initialize(RadGridViewElement, GridViewInfo)
Initializes the view with an instance of the GridViewTemplate.
Declaration
public void Initialize(RadGridViewElement gridViewElement, GridViewInfo viewInfo)
Parameters
|
RadGridViewElement
gridViewElement
An instance of RadGridViewElement. |
|
GridViewInfo
viewInfo
An instance of GridViewTemplate. |
Implements
InitializeFields()
Initializes the fields of the current instance.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the element with the available size.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
Size of the available. |
Returns
|
System.Drawing.SizeF
|
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
|
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
|
RadPropertyChangedEventArgs
e
|
Overrides
PostProcessEvent(GridViewEvent)
Allows additional processing of an event that has been just dispatched.
Declaration
public GridViewEventResult PostProcessEvent(GridViewEvent eventData)
Parameters
|
GridViewEvent
eventData
|
Returns
|
GridViewEventResult
|
Implements
PreProcessEvent(GridViewEvent)
Allows previewing of an event that is about to be dispatched.
Declaration
public GridViewEventResult PreProcessEvent(GridViewEvent eventData)
Parameters
|
GridViewEvent
eventData
|
Returns
|
GridViewEventResult
|
Implements
ProcessEvent(GridViewEvent)
Core entry point for receiving and processing an event.
Declaration
public GridViewEventResult ProcessEvent(GridViewEvent eventData)
Parameters
|
GridViewEvent
eventData
|
Returns
|
GridViewEventResult
|
Implements
SetStripButtonsEnabledState()
Sets the enabled state of FirstButton, PreviousButton, FastBackButton, LastButton, NextButton, FastForwardButton, depending on current page index.
Declaration
protected virtual void SetStripButtonsEnabledState()
UnwireEvents()
Unwires the buttons and text box events.
Declaration
protected virtual void UnwireEvents()
UpdateButton(CommandBarButton, String)
Declaration
protected virtual void UpdateButton(CommandBarButton button, string glyph)
Parameters
|
CommandBarButton
button
|
|
System.String
glyph
|
UpdateButtonsStripElement()
Updates the buttons strip element. Called when an update notification arrives.
Declaration
protected virtual void UpdateButtonsStripElement()
UpdateTextBoxStripElement()
Updates the text box strip element. Called when an update notification arrives.
Declaration
protected virtual void UpdateTextBoxStripElement()
UpdateView()
Explicitly synchronizes the view with its owner.
Declaration
public void UpdateView()
Implements
WireEvents()
Wires the buttons and text box events.
Declaration
protected virtual void WireEvents()