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

The grid data item which will be used for inserting a records in the data souce.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridDataInsertItem : GridDataItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer, IGridInsertItem

Inheritance: objectControlWebControlTableRowGridTableRowGridItemGridEditableItemGridDataItemGridDataInsertItem...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIGridInsertItemINamingContainerIParserAccessorIUrlResolutionService...

Inherited Members GridDataItem.ClientFireCommandFunction(string, string)GridDataItem.RemoveSelectedChildren()GridDataItem.RemoveEditedChildren()GridDataItem.SetVisibleChildren(bool)GridDataItem.OnExpand()GridDataItem.OnCollapse()GridDataItem.SetEdited(bool)GridDataItem.InitializeEditorInCell(IGridEditableColumn)GridDataItem.ChildItemGridDataItem.EditFormItemGridDataItem.HasEditItemGridDataItem.DetailTemplateItemDataCellGridDataItem.DisplayGridDataItem.VisibleGridDataItem.this[string]GridDataItem.this[GridColumn]GridDataItem.SavedOldValuesGridDataItem.IsDataBoundGridEditableItem.ExtractValues(IDictionary)GridEditableItem.UpdateValues(object)GridEditableItem.GetDataKeyValue(string)GridEditableItem.EditManagerGridEditableItem.KeyValuesGridItem.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.GetExpandedDefaultValue()GridItem.ExpandHierarchyToTop()GridItem.CalcColSpan(GridColumn[], int, int)GridItem.LoadViewState(object)GridItem.LeftAlign()GridItem.RightAlign()GridItem.OwnerTableViewGridItem.OwnerIDGridItem.OwnerGridIDGridItem.DataItemGridItem.DataSetIndexGridItem.ItemIndexGridItem.ItemIndexHierarchicalGridItem.ItemTypeGridItem.ExpandedGridItem.SelectedGridItem.SelectableModeGridItem.GroupIndexGridTableRow.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.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()...

Constructors

C#
public GridDataInsertItem(GridTableView ownerTableView)
Parameters:ownerTableViewGridTableView

Properties

Gets a value indicating whether the item can be "expanded" to show its child items

C#
public override bool CanExpand { get; }

Overrides: GridItem.CanExpand

Example:
cs-api-definition
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridItem && (e.Item as GridItem).CanExpand == true)
{
Label1.Text = "Item was expanded";
}
}

Sets the Item in edit mode. Requires Telerik RadGrid to rebind.

C#
public override bool Edit { get; set; }

Overrides: GridItem.Edit

If EditMode is set to InPlace, the grid column editors will be displayed inline of this item.

If EditMode is set to EditForms, a new GridItem will be created, which will be child of this item (GridEditFormItem). The new item will hold the edit form.

Example:
C#
We suggest using IsInEditMode instead of Edit to check whether an Item is in
edit more or not.

Gets a value indicating whether this item has child items - or items somehow related to this.

C#
public override bool HasChildItems { get; }

Overrides: GridDataItem.HasChildItems

Example:
cs-api-definition
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridItem && (e.Item as GridItem).HasChildItems == true)
{
Label1.Text = "has items";
}
}

Gets a value indicating whether the grid item is in edit mode at the moment.

C#
public override bool IsInEditMode { get; }

Overrides: GridDataItem.IsInEditMode

Example:
cs-api-definition
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
TextBox txt = (e.Item as GridEditableItem)["SomeColumnName"].Controls[0] as TextBox;
}