DxAccordionDataMappingBase.HasChildren Property
Specifies whether an item has child items. Map this property to a data source field.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public string HasChildren { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | null | The field name. |
Remarks
The HasChildren
property is required when you enable the Load Child Nodes on Demand mode. This property specifies whether an Accordion item has child items. The component uses the HasChildren
property value to render items before they are expanded for the first time. If you do not specify this property, users do not see Accordion child items in the UI.
<DxAccordion Data="@DataSource"
LoadChildNodesOnDemand="true">
<DataMappings>
<DxDxAccordionDataMapping HasChildren="HasSubGroups"
Children="SubGroups"
Text="Title" />
</DataMappings>
</DxAccordion>
See Also