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