The progressiveTaskRenderingMargin property (number) specifies the size of the buffer, in pixels, beyond the Gantt viewport where task boxes will be rendered.
DayPilot.Gantt.progressiveTaskRenderingMargin50This margin extends the rendered area beyond the visible viewport.
Tasks inside the viewport plus this margin are always kept in the DOM, even when DayPilot.Gantt.progressiveTaskRenderingCacheSweeping is enabled.
JavaScript
const gantt = new DayPilot.Gantt("dp", {
progressiveTaskRenderingMargin: 200,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
progressiveTaskRenderingMargin: 200,
// ...
};React
<DayPilotGantt
progressiveTaskRenderingMargin={200}
{/* ... */}
/>Vue
<DayPilotGantt
:progressiveTaskRenderingMargin="200"
<!-- ... -->
/>DayPilot.Gantt.progressiveTaskRendering
DayPilot.Gantt.progressiveTaskRenderingCacheSweeping