Only load detail when expanded

I have a master-detail grid setup. I only want the detail to be loaded after the expand button is clicked since loading each detail when the grid is created would seriously impact performance. Is this possible?


1 Reply

PS Prathap Senthil Syncfusion Team December 30, 2022 11:38 AM UTC

Hi Marc,

Greetings from Syncfusion support

Using the dictionary variable, which is updated when clicking the expand icon, we have rendered the subgrid. So that the subgrid will be displayed for each row based on the unique values. so that when expanded, the detail will load. We used the new events support to accomplish your request for Details Expanding and Details Collapsing. Kindly check the sample solution attached for your reference.


New Events Provided-https://blazor.syncfusion.com/documentation/release-notes/20.3.57?type=all#grid

Event name

Description

DetailsExpanding

An Event that is raised when Detail template row is clicked to expand, you can also cancel this action by using Cancel property provided in the event args.

DetailsExpanded

An Event that is raised after Detail Template row is expanded.

DetailsCollapsing

An event that is raised when Detail Template row is clicked to collapse, you can also cancel this action by using Cancel property provided in the event args.

DetailsCollapsed

An event that is raised after Detail Template row is collapsed.


Regards,
Prathap S


Attachment: DetailTemplate_576bf1ba.zip

Loader.
Up arrow icon