DxAccordion.LoadChildItemsOnDemand Property
Specifies whether the Accordion’s child items are loaded on demand.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(false)]
[Parameter]
public bool LoadChildItemsOnDemand { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true to load child items on demand; otherwise, false. |
Remarks
If you set the LoadChildItemsOnDemand
property to true
, the Accordion loads an item’s children when the item is expanded for the first time. This mode improves the Accordion’s performance if the bound data structure contains a large number of items.
You can load child items on demand in either bound or unbound modes. In bound mode, the HasChildren property is required. The component uses this property to determine how to render items before they are expanded for the first time (for example, whether expand buttons must appear).
<DxAccordion Data="@Data" LoadChildItemsOnDemand="true">
<DataMappings>
<DxAccordionDataMapping Text="Name"
Key="Id"
ParentKey="CategoryId"/>
</DataMappings>
</DxAccordion>
Note
You cannot operate with unloaded items in code (for instance, get item information).