Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions blazor/treegrid/data-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,13 @@ On remote data binding, all tree grid actions such as paging, loading child on-d

### LoadChildOnDemand

Tree Grid provides option to load the child records also during the initial rendering itself for remote data binding by setting the [LoadChildOnDemand](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_LoadChildOnDemand) as `true`.
The Tree Grid component provides option to load child records during the initial rendering itself when using remote data binding by setting [LoadChildOnDemand](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_LoadChildOnDemand) to `true`.The behavior of the [LoadChildOnDemand](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_LoadChildOnDemand) feature of Tree Grid described below.

When the [LoadChildOnDemand](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_LoadChildOnDemand) is enabled parent records are rendered in expanded state.
*The parent records are rendered in an expanded state.

*Child records are loaded along with the parent records during the initial rendering.

This feature is particularly useful for applications that require hierarchical data to be readily accessible without additional user interaction for expanding nodes.

The following code example describes the behavior of the `LoadChildOnDemand` feature of Tree Grid.

Expand Down Expand Up @@ -794,6 +798,9 @@ namespace WebAPI.Controller

{% endtabs %}

N> The LoadChildOnDemand feature is not applicable for local data binding.


<!-- Custom Adaptor

You can create your own adaptor by extending the built-in adaptors. The following demonstrates custom adaptor approach and how to add a serial number for the records by overriding the built-in response processing using the **processResponse** method of the **ODataAdaptor**.
Expand Down