TreeListDataItem
Represents the items bound to entries from the data source in RadTreeList.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class TreeListDataItem : TreeListEditableItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IDataItemContainer, INamingContainer
Inheritance: objectControlWebControlTableRowTreeListTableRowTreeListItemTreeListEditableItemTreeListDataItem...
Implements:
Inherited Members
Constructors
public TreeListDataItem(RadTreeList ownerTreeList, int displayIndex, bool isDataBinding)
public TreeListDataItem(RadTreeList ownerTreeList, TreeListItemType itemType, int displayIndex, bool isDataBinding)
Properties
Gets a boolean value indicating whether the current item can be expanded.
public bool CanExpand { get; }
Returns a collection of the visible child items of the current item. This property is readonly.
public List<TreeListDataItem> ChildItems { get; }
Gets an integer value indicating the index of the current item's corresponding record inside the treelist datasource.
public int DataItemIndex { get; }
Implements:
Gets a reference to the TreeListDetailTemplate item corresponding to the current item.
public TreeListDetailTemplateItem DetailItem { get; }
Gets an integer value indicating the index of the current item in the treelist, regardless of the items hierarchy.
public int DisplayIndex { get; protected set; }
Implements:
Gets or sets a value indicating whether the current item should be edited.
public override bool Edit { get; set; }
Overrides:
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.
public TreeListEditFormItem EditFormItem { get; }
Gets a boolean value indicating whether the item is expanded.
public bool Expanded { get; set; }
Gets an object of type TreeListHierarchyIndex representing the nested level and level index of the item.
public TreeListHierarchyIndex HierarchyIndex { get; }
Gets the TreeListEditableItem instance that is used to insert a new data item as a child of the current TreeListDataItem.
public TreeListEditableItem InsertItem { get; }
Gets or sets a value indicating whether a child item should be inserted into the current item.
public virtual bool IsChildInserted { get; set; }
protected bool IsExpanded { get; }
Returns a boolean value indicating whether the item is in edit mode.
public override bool IsInEditMode { get; }
Overrides:
Returns the parent item (if resolved) of the current item. This property is readonly.
public TreeListDataItem ParentItem { get; }
Methods
Returns the column editor for the passed column.
public override ITreeListColumnEditor GetColumnEditor(TreeListEditableColumn editableColumn)
A TreeListEditableColumn object.
Returns:The TreeListColumnEditor corresponding to the passed column.
Overrides:
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.
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.
Inserts a new item as a child item of the current TreeListDataItem instance.
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.