- Home
- Forum
- React - EJ 2
- performance issues
performance issues
Hi,
I have 500 to 700 records, and we are using the virtualization method, but the Gantt chart is still slow. I am facing performance issues.
Thank you,
Hi Jaya,
Greetings from Syncfusion.
For your query, we have prepared a virtualization sample with 800 records, including multi-level data and predecessor connections, while also utilizing templates. We did not experience any lag during the initial load or while scrolling. The initial load time was less than 2 seconds (refer sample).
For optimal performance, we recommend following the best practices outlined in our documentation:
Documentation - Performance tips for EJ2 React Gantt control | Syncfusion
If you are still experiencing lag after implementing the recommended steps, please share the following details to validate on our end.
Your time delay measurements.
Your data source and the properties used in your application.
If you have implemented templates, please share the relevant code snippets.
Details of number of columns that you have used.
Sample - 5klpiszz (forked) - StackBlitz
Regards,
Sridharan
Even though you are using virtualization, ensure that:
- You are using an optimized virtualization library like
react-windoworreact-virtualizedinstead of manually handling large datasets. - Reduce re-renders by memoizing row data using
React.memo()oruseMemo(). - If the Gantt chart has large DOM elements, limit the number of visible rows at a time.
import { FixedSizeList as List } from 'react-window';
const Row = ({ index, style }) => (
<div style={style}>
{data[index].name} {/* Replace with your Gantt chart row content */}
</div>
If you are still facing the same issue it would be best to connect with a professional web development agency.
);
<List
height={600}
itemCount={data.length}
itemSize={50} // Adjust according to row height
width="100%"
>
{Row}
</List>
Hi Aun Digital,
Thanks for the Suggestion.
We follow best practices for handling large datasets efficiently using virtualization in the Syncfusion Gantt Chart. If you have any specific queries related to Syncfusion's Gantt Chart, please feel free to share them with us. We’ll be happy to provide the necessary details and assist you further.
Regard,
Sridharan
- 3 Replies
- 3 Participants
-
JS Jaya Simha
- Mar 14, 2025 08:56 AM UTC
- Mar 20, 2025 11:34 AM UTC