The autoRefreshCommand property (string) specifies the command text used for the periodic command event fired when AutoRefresh is enabled.
DayPilot.Gantt.autoRefreshCommand
"refresh"
The property value is used as the command text accessible in the server-side Command event handler.
This property is only applicable to versions with integrated server-side backend (DayPilot Pro for ASP.NET WebForms, DayPilot Pro for ASP.NET MVC).
Use DayPilot.Gantt.autoRefreshEnabled to turn the periodic requests on and DayPilot.Gantt.autoRefreshInterval and DayPilot.Gantt.autoRefreshMaxCount to control their timing and count.
const gantt = new DayPilot.Gantt("dp", {
autoRefreshEnabled: true,
autoRefreshCommand: "autorefresh",
// ...
});
gantt.init();
<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
autoRefreshEnabled: true,
autoRefreshCommand: "autorefresh",
// ...
};
<DayPilotGantt
autoRefreshEnabled={true}
autoRefreshCommand="autorefresh"
{/* ... */}
/>
<DayPilotGantt :autoRefreshEnabled="true" autoRefreshCommand="autorefresh" <!-- ... --> />
DayPilot.Gantt.autoRefreshEnabled
DayPilot.Gantt.autoRefreshInterval