Back to Devexpress

DxAccordionDataMappingBase.HasChildren Property

blazor-devexpress-dot-blazor-dot-base-dot-dxaccordiondatamappingbase.md

latest1.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string HasChildren { get; set; }

Property Value

TypeDefaultDescription
Stringnull

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

DxAccordionDataMappingBase Class

DxAccordionDataMappingBase Members

DevExpress.Blazor.Base Namespace