The progressiveTaskRenderingCacheSize property (number) specifies how many recently rendered task boxes will be kept in the DOM when DayPilot.Gantt.progressiveTaskRenderingCacheSweeping is enabled.
DayPilot.Gantt.progressiveTaskRenderingCacheSize200Tasks inside the Gantt viewport plus DayPilot.Gantt.progressiveTaskRenderingMargin are not included in this limit and are always kept in the DOM.
The oldest task boxes are removed first.
JavaScript
const gantt = new DayPilot.Gantt("dp", {
progressiveTaskRenderingCacheSweeping: true,
progressiveTaskRenderingCacheSize: 500,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
progressiveTaskRenderingCacheSweeping: true,
progressiveTaskRenderingCacheSize: 500,
// ...
};React
<DayPilotGantt
progressiveTaskRenderingCacheSweeping={true}
progressiveTaskRenderingCacheSize={500}
{/* ... */}
/>Vue
<DayPilotGantt
:progressiveTaskRenderingCacheSweeping="true"
:progressiveTaskRenderingCacheSize="500"
<!-- ... -->
/>DayPilot.Gantt.progressiveTaskRenderingCacheSweeping
DayPilot.Gantt.progressiveTaskRenderingMargin