New to Telerik UI for .NET MAUIStart a free 30-day trial

A component that presents hierarchical data with rows and columns. The control is given an ItemsSource and each item in that source is presented by a row. If an item has children, then each child is also presented by a row, recursively. Items that have children can be expanded and collapsed. This component can have columns, where each cell in the column contains the corresponding value for an item (for the row). This component inherits RadDataGrid so almost all of its features will work here as well - like editing, cell templates, frozen columns, search, etc.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadTreeDataGrid : RadDataGrid, ICommandService

Inheritance: objectRadLayoutRadDataGridRadTreeDataGrid

Implements: ICommandService

Inherited Members RadDataGrid.AISettingsPropertyRadDataGrid.AIViewTemplatePropertyRadDataGrid.IsAIEnabledPropertyRadDataGrid.AIRequestFuncPropertyRadDataGrid.AIResponseActionPropertyRadDataGrid.AutoGenerateColumnsPropertyRadDataGrid.ShowColumnFootersPropertyRadDataGrid.ShowColumnHeadersPropertyRadDataGrid.GroupHeaderStylePropertyRadDataGrid.GroupHeaderStyleSelectorPropertyRadDataGrid.GroupFooterStylePropertyRadDataGrid.GroupFooterStyleSelectorPropertyRadDataGrid.GroupHeaderTemplatePropertyRadDataGrid.GroupHeaderTemplateSelectorPropertyRadDataGrid.GroupFooterTemplatePropertyRadDataGrid.IsBusyPropertyRadDataGrid.UserSortModePropertyRadDataGrid.UserGroupModePropertyRadDataGrid.UserFilterModePropertyRadDataGrid.DataOperationIndicationModePropertyRadDataGrid.ViewportBufferHeightPropertyRadDataGrid.ListenForNestedPropertyChangePropertyRadDataGrid.RowHeightPropertyRadDataGrid.DraggedObjectPropertyRadDataGrid.ShowGroupFootersPropertyRadDataGrid.ShowGroupHeaderAggregatesPropertyRadDataGrid.GroupAggregatesAlignmentPropertyRadDataGrid.GroupAggregateCellTemplatePropertyRadDataGrid.GroupAggregateCellStylePropertyRadDataGrid.GroupAggregateCellStyleSelectorPropertyRadDataGrid.ServicePanelPropertyRadDataGrid.SearchPanelPropertyRadDataGrid.EmptyContentTemplatePropertyRadDataGrid.EmptyContentDisplayModePropertyRadDataGrid.FrozenColumnsSplitterStylePropertyRadDataGrid.BorderBrushPropertyRadDataGrid.BorderThicknessPropertyRadDataGrid.SearchSettingsPropertyRadDataGrid.RenderModePropertyRadDataGrid.AreGroupHeadersClippedWhenFrozenPropertyRadDataGrid.AutoExpandGroupsPropertyRadDataGrid.CurrentCellPropertyRadDataGrid.CurrentCellStylePropertyRadDataGrid.ItemsSourcePropertyRadDataGrid.ApplyDataOperationsOnPropertyChangePropertyRadDataGrid.GroupDescriptorsPropertyRadDataGrid.FilterDescriptorsPropertyRadDataGrid.SortDescriptorsPropertyRadDataGrid.GridLinesVisibilityPropertyRadDataGrid.GridLinesThicknessPropertyRadDataGrid.GridLinesColorPropertyRadDataGrid.RowBackgroundStylePropertyRadDataGrid.AlternateRowBackgroundStylePropertyRadDataGrid.RowBackgroundStyleSelectorPropertyRadDataGrid.UserEditModePropertyRadDataGrid.LoadOnDemandModePropertyRadDataGrid.LoadOnDemandBufferItemsCountPropertyRadDataGrid.LoadOnDemandRowTemplatePropertyRadDataGrid.LoadOnDemandAutoTemplatePropertyRadDataGrid.LoadOnDemandRowStylePropertyRadDataGrid.CanUserResizeColumnsPropertyRadDataGrid.CanUserReorderColumnsPropertyRadDataGrid.RowDetailsTemplatePropertyRadDataGrid.ExpandedRowDetailsPropertyRadDataGrid.CanUserExpandMultipleRowDetailsPropertyRadDataGrid.AreRowDetailsFrozenPropertyRadDataGrid.SelectionUnitPropertyRadDataGrid.SelectionModePropertyRadDataGrid.SelectedItemPropertyRadDataGrid.SelectionStylePropertyRadDataGrid.SelectedItemsPropertyRadDataGrid.MouseHoverStylePropertyRadDataGrid.ColumnHeaderDragVisualTemplatePropertyRadDataGrid.ColumnReorderIndicatorTemplatePropertyRadDataGrid.GroupingPanelItemTemplatePropertyRadDataGrid.GetDistinctValues(DataGridColumn, bool)RadDataGrid.ScrollItemIntoView(object)RadDataGrid.ScrollColumnIntoView(DataGridColumn)RadDataGrid.OnHandlerChanged()RadDataGrid.OnPropertyChanged(string)RadDataGrid.CanRebuildUI(UpdateFlags)RadDataGrid.GetDataView()RadDataGrid.CreateFilterTapContext(DataGridColumn)RadDataGrid.OnBindingContextChanged()RadDataGrid.SelectItem(object)RadDataGrid.DeselectItem(object)RadDataGrid.SelectCell(DataGridCellInfo)RadDataGrid.DeselectCell(DataGridCellInfo)RadDataGrid.SelectAll()RadDataGrid.DeselectAll()RadDataGrid.AISettingsRadDataGrid.AIViewTemplateRadDataGrid.IsAIEnabledRadDataGrid.AIRequestFuncRadDataGrid.AIResponseActionRadDataGrid.ColumnsRadDataGrid.FrozenColumnsRadDataGrid.UnfrozenColumnsRadDataGrid.AutoGenerateColumnsRadDataGrid.ShowColumnFootersRadDataGrid.ShowColumnHeadersRadDataGrid.GroupHeaderStyleRadDataGrid.GroupHeaderStyleSelectorRadDataGrid.GroupFooterStyleRadDataGrid.GroupFooterStyleSelectorRadDataGrid.GroupHeaderTemplateRadDataGrid.GroupHeaderTemplateSelectorRadDataGrid.GroupFooterTemplateRadDataGrid.IsBusyRadDataGrid.UserSortModeRadDataGrid.UserGroupModeRadDataGrid.UserFilterModeRadDataGrid.DataOperationIndicationModeRadDataGrid.CommandsRadDataGrid.CommandServiceRadDataGrid.ViewportBufferHeightRadDataGrid.ListenForNestedPropertyChangeRadDataGrid.RowHeightRadDataGrid.ShowGroupFootersRadDataGrid.ShowGroupHeaderAggregatesRadDataGrid.GroupAggregatesAlignmentRadDataGrid.GroupAggregateCellTemplateRadDataGrid.GroupAggregateCellStyleRadDataGrid.GroupAggregateCellStyleSelectorRadDataGrid.ServicePanelRadDataGrid.SearchPanelRadDataGrid.EmptyContentTemplateRadDataGrid.EmptyContentDisplayModeRadDataGrid.FrozenColumnsSplitterStyleRadDataGrid.BorderBrushRadDataGrid.BorderThicknessRadDataGrid.SearchSettingsRadDataGrid.RenderModeRadDataGrid.AreGroupHeadersClippedWhenFrozenRadDataGrid.AutoExpandGroupsRadDataGrid.CurrentCellRadDataGrid.CurrentCellStyleRadDataGrid.ItemsSourceRadDataGrid.ApplyDataOperationsOnPropertyChangeRadDataGrid.SortDescriptorsRadDataGrid.GroupDescriptorsRadDataGrid.FilterDescriptorsRadDataGrid.GridLinesVisibilityRadDataGrid.GridLinesThicknessRadDataGrid.GridLinesColorRadDataGrid.RowBackgroundStyleRadDataGrid.AlternateRowBackgroundStyleRadDataGrid.RowBackgroundStyleSelectorRadDataGrid.UserEditModeRadDataGrid.LoadOnDemandModeRadDataGrid.LoadOnDemandBufferItemsCountRadDataGrid.LoadOnDemandRowTemplateRadDataGrid.LoadOnDemandAutoTemplateRadDataGrid.LoadOnDemandRowStyleRadDataGrid.HitTestServiceRadDataGrid.CanUserResizeColumnsRadDataGrid.CanUserReorderColumnsRadDataGrid.RowDetailsTemplateRadDataGrid.ExpandedRowDetailsRadDataGrid.CanUserExpandMultipleRowDetailsRadDataGrid.AreRowDetailsFrozenRadDataGrid.SelectionUnitRadDataGrid.SelectionModeRadDataGrid.SelectedItemRadDataGrid.SelectionStyleRadDataGrid.SelectedItemsRadDataGrid.VisualStateServiceRadDataGrid.MouseHoverStyleRadDataGrid.ColumnHeaderDragVisualTemplateRadDataGrid.ColumnReorderIndicatorTemplateRadDataGrid.GroupingPanelItemTemplateRadDataGrid.PromptRequestRadDataGrid.CancelPromptRequestRadDataGrid.DataBindingCompleteRadDataGrid.DistinctValuesLoadingRadDataGrid.VisibleItemsChangedRadDataGrid.ContentPaintCompletedRadDataGrid.CurrentCellChangedRadDataGrid.LoadOnDemandRadDataGrid.ColumnReorderStartingRadDataGrid.ColumnReorderingRadDataGrid.ColumnReorderCompletingRadDataGrid.ColumnReorderedRadDataGrid.ColumnUserResizeCompletedRadDataGrid.SelectionChangedRadLayout.CreateLayoutManager()...

Constructors

Initializes an instance of the class.

C#
public RadTreeDataGrid()

Fields

Identifies the ExpandCollapseIndicatorStyle property.

C#
public static readonly BindableProperty ExpandCollapseIndicatorStyleProperty

Identifies the ExpandCollapseIndicatorStyleSelector property.

C#
public static readonly BindableProperty ExpandCollapseIndicatorStyleSelectorProperty

ItemDescriptorProperty

BindableProperty

Identifies the ItemDescriptor property.

C#
public static readonly BindableProperty ItemDescriptorProperty

Properties

Gets or sets the Style for the appearance of the expand/collapse indicators within the grid. The Style should target TreeDataGridExpandCollapseIndicatorAppearance.

C#
public Style ExpandCollapseIndicatorStyle { get; set; }

Gets or sets the IStyleSelector instance that may be used to select different styles for the expand/collapse indicator for the items.

C#
public IStyleSelector ExpandCollapseIndicatorStyleSelector { get; set; }

Gets or sets the entity that describe an item, i.e. how to get the children for an item. The tree hierarchy is built based upon this descriptor.

C#
public TreeDataGridItemDescriptor ItemDescriptor { get; set; }

Methods

Collapses the children of the item.

C#
public void Collapse(object item)
Parameters:itemobject

Expands the children of the item.

C#
public void Expand(object item)
Parameters:itemobject

Gets a value indicating whether the item is currently expanded (has its children visible).

C#
public bool IsExpanded(object item)
Parameters:itemobjectReturns:

bool