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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class ControlItem : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IMarkableStateManager, IStateManager, INamingContainer, IXmlSerializable

Inheritance: objectControlWebControlControlItem

Derived Classes: DropDownListItemNavigationItemRadComboBoxItemRadListBoxItemRadSliderItemRadToolBarItem...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIMarkableStateManagerINamingContainerIParserAccessorIStateManagerIUrlResolutionServiceIXmlSerializable...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.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.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()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.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.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()...

Constructors

C#
protected ControlItem()

Properties

Gets or sets the access key that allows you to quickly navigate to the Web server control.

C#
public override string AccessKey { get; set; }
Property Value:

The access key for quick navigation to the Web server control. The default value is String.Empty, which indicates that this property is not set.

Exceptions: ArgumentException

The specified access key is neither null, String.Empty nor a single character string.

Overrides: WebControl.AccessKey

C#
protected ControlItemCollection Children { get; }
C#
protected ControlItemContainer Container { get; }
C#
[Browsable(false)]
public virtual object DataItem { get; set; }

The ID property is reserved for internal use. Please use the Value property or use the Attributes collection if you need to assign custom data to the item.

C#
[Browsable(false)]
public string ID { get; }

Gets the zero based index of the item.

C#
[Browsable(false)]
public int Index { get; }
C#
protected virtual IDictionary<string, string> PropertyMappings { get; }
C#
public override Version RenderingCompatibility { get; set; }

Overrides: Control.RenderingCompatibility

C#
protected virtual ITemplate Template { get; set; }
C#
public virtual string Text { get; set; }
C#
public virtual string Value { get; set; }

Methods

C#
protected abstract ControlItemCollection CreateChildItemCollection()
Returns:

ControlItemCollection

C#
protected TControlItem FindChild<TControlItem>(Predicate<TControlItem> predicate) where TControlItem : ControlItem
Parameters:predicatePredicate<TControlItem>Returns:

TControlItem

C#
protected IList<TControlItem> GetAllChildren<TControlItem>() where TControlItem : ControlItem
Returns:

IList<TControlItem>

C#
protected IList<TControlItem> GetChildren<TControlItem>(Predicate<TControlItem> predicate) where TControlItem : ControlItem
Parameters:predicatePredicate<TControlItem>Returns:

IList<TControlItem>

C#
protected string GetHierarchicalIndex()
Returns:

string

Returns true if the control is rendered by the ControlItem itself; false if it was added by the user to the Controls collection.

C#
protected virtual bool IsChildControl(Control control)
Parameters:controlControlReturns:

bool

C#
protected virtual void LoadChildViewState(object viewState)
Parameters:viewStateobject
C#
protected virtual void LoadFromDictionary(IDictionary<string, object> dictionary)
Parameters:dictionaryIDictionary<string, object>
C#
protected virtual void ReadXml(XmlReader reader)
Parameters:readerXmlReader
C#
protected virtual object SaveChildViewState()
Returns:

object

C#
protected virtual void SetChildrenDirty()
C#
protected virtual void SetItemContainer(ControlItemContainer itemContainer)
Parameters:itemContainerControlItemContainer
C#
protected virtual void TrackChildViewState()
C#
protected virtual void WriteXml(XmlWriter writer)
Parameters:writerXmlWriter