New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

GridPagerItem class. See Functional Items for more information about the pager item.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridPagerItem : GridItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer

Inheritance: objectControlWebControlTableRowGridTableRowGridItemGridPagerItem...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorINamingContainerIParserAccessorIUrlResolutionService...

Inherited Members GridItem.AddAttributesToRender(HtmlTextWriter)GridItem.FireCommandEvent(string, object)GridItem.OnBubbleEvent(object, EventArgs)GridItem.SetItemType(GridItemType)GridItem.OnCellDataBound(GridColumn, TableCell)GridItem.CellsDataBound(GridColumn[])GridItem.CreateCellObject()GridItem.CreateCellObject(GridColumn)GridItem.RemoveSelectedChildren()GridItem.RemoveEditedChildren()GridItem.GetExpandedDefaultValue()GridItem.OnExpand()GridItem.OnCollapse()GridItem.ExpandHierarchyToTop()GridItem.SetEdited(bool)GridItem.CalcColSpan(GridColumn[], int, int)GridItem.LoadViewState(object)GridItem.LeftAlign()GridItem.RightAlign()GridItem.OwnerTableViewGridItem.OwnerIDGridItem.OwnerGridIDGridItem.HasChildItemsGridItem.CanExpandGridItem.DataItemGridItem.DataSetIndexGridItem.ItemIndexGridItem.ItemIndexHierarchicalGridItem.ItemTypeGridItem.ExpandedGridItem.DisplayGridItem.SelectedGridItem.SelectableModeGridItem.EditGridItem.GroupIndexGridItem.IsDataBoundGridItem.IsInEditModeGridTableRow.OriginalClientIDGridTableRow.ClientIDTableRow.CreateControlStyle()TableRow.CreateControlCollection()TableRow.CellsTableRow.HorizontalAlignTableRow.SupportsDisabledAttributeTableRow.TableSectionTableRow.VerticalAlignWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Properties

Gets or sets the caption for the table pager.

C#
public virtual string Caption { get; set; }
Property Value:

The default value is "Data pager".

Setting this property to empty string will force the pager to not render caption tag.

Gets the position of the pager in the RadGrid. Default value is false.

C#
public bool IsTopPager { get; }
Example:
cs-api-definition
if (((GridPagerItem)this.Item).IsTopPager)
{
Item.Visible = false;
return;
}

The Cell where the PagerItems are located

C#
public TableCell PagerContentCell { get; }
Example:
cs-api-definition
if (e.Item is GridPagerItem)
{
GridPagerItem pagerItem = (e.Item as GridPagerItem);
pagerItem.PagerContentCell.Controls.Clear();
//custom paging
}

Gets the paging manager holding information and providing setup for the RadGrid pagging.

C#
public GridPagingManager Paging { get; }
Property Value:

The paging manager holding information and providing setup for the RadGrid pagging.

C#
protected GridPagerStyle RenderPagerStyle { get; }

Gets or sets the summary for the table pager.

C#
public virtual string Summary { get; set; }
Property Value:

The default value is "Data pager which controls on which page is the RadGrid control.".

Setting this property to empty string will force the pager to not render summary attribute.

Methods

C#
protected virtual Panel CreateAdvancedPanel(TableCell pagerCell)
Parameters:pagerCellTableCellReturns:

Panel

C#
public Control GetNumericPager()
Returns:

Control

Returns instance of control which contains grid numeric pager

Example:
cs-api-definition
protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridPagerItem)
{
GridPagerItem gridPager = e.Item as GridPagerItem;
Control numericPagerControl = gridPager.GetNumericPager();
gridPager.Controls[0].Controls.Add(numericPagerControl);
}
}