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

Represents the items bound to entries from the data source in RadTreeList.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class TreeListDataItem : TreeListEditableItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IDataItemContainer, INamingContainer

Inheritance: objectControlWebControlTableRowTreeListTableRowTreeListItemTreeListEditableItemTreeListDataItem...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDataItemContainerIDisposableIExpressionsAccessorINamingContainerIParserAccessorIUrlResolutionService...

Inherited Members TreeListEditableItem.ExtractValues(IDictionary)TreeListEditableItem.UpdateValues(object)TreeListEditableItem.GetColumnEditor(string)TreeListEditableItem.InitializeColumnEditor(TableCell, int, TreeListEditableColumn)TreeListEditableItem.OnCellDataBound(TreeListColumn, TableCell)TreeListEditableItem.DataItemTreeListEditableItem.SavedOldValuesTreeListEditableItem.CanExtractValuesTreeListItem.SetupDecorator()TreeListItem.Initialize(IList<TreeListColumn>)TreeListItem.Render(HtmlTextWriter)TreeListItem.CreateCellObject()TreeListItem.CallOnItemCreated()TreeListItem.CallOnItemDataBound()TreeListItem.CellsDataBound(IList<TreeListColumn>)TreeListItem.OnBubbleEvent(object, EventArgs)TreeListItem.FireCommandEvent(string, object)TreeListItem.ItemTypeTreeListItem.OwnerTreeListTreeListItem.IsDataBindingTreeListItem.CellDataBoundTreeListTableRow.AddAttributesToRender(HtmlTextWriter)TableRow.CreateControlStyle()TableRow.CreateControlCollection()TableRow.CellsTableRow.HorizontalAlignTableRow.SupportsDisabledAttributeTableRow.TableSectionTableRow.VerticalAlignWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)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.ClientIDControl.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()...

Constructors

C#
public TreeListDataItem(RadTreeList ownerTreeList, int displayIndex, bool isDataBinding)
Parameters:ownerTreeListRadTreeListdisplayIndexintisDataBindingbool
C#
public TreeListDataItem(RadTreeList ownerTreeList, TreeListItemType itemType, int displayIndex, bool isDataBinding)
Parameters:ownerTreeListRadTreeListitemTypeTreeListItemTypedisplayIndexintisDataBindingbool

Properties

Gets a boolean value indicating whether the current item can be expanded.

C#
public bool CanExpand { get; }

Returns a collection of the visible child items of the current item. This property is readonly.

C#
public List<TreeListDataItem> ChildItems { get; }

Gets an integer value indicating the index of the current item's corresponding record inside the treelist datasource.

C#
public int DataItemIndex { get; }

Implements: IDataItemContainer.DataItemIndex

Gets a reference to the TreeListDetailTemplate item corresponding to the current item.

C#
public TreeListDetailTemplateItem DetailItem { get; }

Gets an integer value indicating the index of the current item in the treelist, regardless of the items hierarchy.

C#
public int DisplayIndex { get; protected set; }

Implements: IDataItemContainer.DisplayIndex

Gets or sets a value indicating whether the current item should be edited.

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

Overrides: TreeListEditableItem.Edit

Gets the TreeListEditFormItem instance that is used to edit values from the current TreeListDataItem when the current item is in edit mode and EditMode is set to EditForms.

C#
public TreeListEditFormItem EditFormItem { get; }

Gets a boolean value indicating whether the item is expanded.

C#
public bool Expanded { get; set; }

Gets an object of type TreeListHierarchyIndex representing the nested level and level index of the item.

C#
public TreeListHierarchyIndex HierarchyIndex { get; }

Gets the TreeListEditableItem instance that is used to insert a new data item as a child of the current TreeListDataItem.

C#
public TreeListEditableItem InsertItem { get; }

Gets or sets a value indicating whether a child item should be inserted into the current item.

C#
public virtual bool IsChildInserted { get; set; }
C#
protected bool IsExpanded { get; }

Returns a boolean value indicating whether the item is in edit mode.

C#
public override bool IsInEditMode { get; }

Overrides: TreeListEditableItem.IsInEditMode

Returns the parent item (if resolved) of the current item. This property is readonly.

C#
public TreeListDataItem ParentItem { get; }

Gets or sets a boolean value indicating whether the item is selected.

C#
public bool Selected { get; set; }

Methods

C#
[SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
protected Button CreateExpandCollapseButton(string id)
Parameters:idstringReturns:

Button

Returns the column editor for the passed column.

C#
public override ITreeListColumnEditor GetColumnEditor(TreeListEditableColumn editableColumn)
Parameters:editableColumnTreeListEditableColumn

A TreeListEditableColumn object.

Returns:

ITreeListColumnEditor

The TreeListColumnEditor corresponding to the passed column.

Overrides: TreeListEditableItem.GetColumnEditor(TreeListEditableColumn)

Gets the key value of the item, corresponding to a predefined key name. The key should be listed in the DataKeyNames collection of the control.

C#
public object GetDataKeyValue(string keyName)
Parameters:keyNamestring

The name of the field.

Returns:

object

The object from the data item which corresponds to the given key.

Gets the key value of the item's parent item, corresponding to a predefined key name. The key should be listed in the ParentDataKeyNames collection of the control.

C#
public object GetParentDataKeyValue(string keyName)
Parameters:keyNamestring

The name of the field.

Returns:

object

The object from the data item which corresponds to the given key.

Inserts a new item as a child item of the current TreeListDataItem instance.

C#
public void InsertChildItem()

Inserts a new item as a child item of the current TreeListDataItem instance. The insert item will be databound to the specified object.

C#
public virtual void InsertChildItem(object newDataItem)
Parameters:newDataItemobject
C#
protected void SetExpandedState(bool shouldExpand)
Parameters:shouldExpandbool
C#
protected void SetSelected(bool isSelected)
Parameters:isSelectedbool