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

Item that is displayed on top or at the bottom of the each GridTableView base on the settings of CommandItemDisplay property. Generally this item displays by default "Add new record" and "Refresh" button, but it can be customized using the CommandItemTemplate. The commands bubbled through this item will be fired by RadGrid.ItemCommand event.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

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

Inheritance: objectControlWebControlTableRowGridTableRowGridItemGridCommandItem...

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 command item.

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 or sets the summary attribute for the table command item.

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

The default value is "Command item for additional functionalities for the grid like adding a new record and exporting.".

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

Methods

C#
protected virtual void InitializeBatchUpdateButtons(TableCell cell)
Parameters:cellTableCell
C#
protected virtual void InitializeCommandItem()
C#
protected virtual void InitializeDesktopDefault(TableCell contentCell)
Parameters:contentCellTableCell
C#
protected virtual void InitializeLightweightDefault(TableCell contentCell)
Parameters:contentCellTableCell
C#
protected virtual void InitializeMobileDefault(TableCell contentCell)
Parameters:contentCellTableCell