The DevExpress Blazor Pivot Table supports our high-performance Server Mode data source. This unique data source was specifically designed for large data collections displayed in Blazor Server applications.
Server Mode implements advanced data management algorithms that differ from traditional data binding in two key areas:
- Remote data is loaded in small chunks on demand.
- Data shaping operations are delegated to an underlying ORM service (EF Core or DevExpress XPO).
Depending on data source and component configuration, DevExpress Server Mode can significantly reduce load times, optimize client-side memory consumption, and improve component responsiveness and usability.
Follow the steps below to incorporate this data source into your next DevExpress-powered Blazor project:
- Add a reference to a data source namespace (
DevExpress.Data.Linq). - Create a data source instance. Set the
KeyExpressionproperty to the name of entity model key property (Idin this demo). Use theQueryableSourceproperty to define the queryable data source from the EF Core data context. - Assign the data source instance to the Pivot Table
Dataproperty. - In the web page's
Disposemethod, dispose of the data source instance.
Explore this demo to experience the performance benefits of the DevExpress Server Mode data source. The Pivot Table in this module is linked to a dataset with over 1,000,000 rows. Navigate between individual pages or sort/group/filter data and note overall responsiveness.