Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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.

Razor
<DxAccordion Data="@DataSource"
             LoadChildNodesOnDemand="true">
    <DataMappings>
        <DxDxAccordionDataMapping HasChildren="HasSubGroups"
                                  Children="SubGroups"
                                  Text="Title" />
    </DataMappings>
</DxAccordion>
See Also