DayPilot.Gantt.autoRefreshCommand

The autoRefreshCommand property (string) specifies the command text used for the periodic command event fired when AutoRefresh is enabled.

Declaration

DayPilot.Gantt.autoRefreshCommand

Default Value

"refresh"

Notes

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.

Examples

JavaScript

const gantt = new DayPilot.Gantt("dp", {
  autoRefreshEnabled: true,
  autoRefreshCommand: "autorefresh",
  // ...
});
gantt.init();

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  autoRefreshEnabled: true,
  autoRefreshCommand: "autorefresh",
  // ...
};

React

<DayPilotGantt
  autoRefreshEnabled={true}
  autoRefreshCommand="autorefresh"
  {/* ... */}
/>

Vue

<DayPilotGantt
  :autoRefreshEnabled="true"
  autoRefreshCommand="autorefresh"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.autoRefreshEnabled

DayPilot.Gantt.autoRefreshInterval

DayPilot.Gantt.autoRefreshMaxCount

DayPilot.Gantt Class