I am using SfGrid (Blazor) with a DataSource of List of ExpandoObject loaded from an API.
The data is fetched once on initialization (no API call during paging), and all rows are already in memory. However, I am experiencing noticeable lag when paging through the grid.
Details:
- DataSource: List of ExpandoObject (parsed from JSON API)
- Paging: client-side (no additional API calls)
- PageSize: 50
- Columns: dynamically generated based on JSON keys
- Features enabled: Paging, Sorting, Filtering
What I have verified:
- Data is not reloaded during paging
- Grid DataSource reference is not changed
- @key is applied to SfGrid
- Data has been normalized (no null issues, consistent schema)
Observation:
- Paging is significantly slower compared to using a strongly-typed model or static data
- The issue seems related to ExpandoObject and dynamic column rendering
Question:
Is there any recommended way to optimize SfGrid performance when using ExpandoObject as the DataSource?
Are there known limitations or best practices for improving paging/rendering performance in this scenario?
Attachment:
WebClient_d7fa5fbc.zip