Updates the control after changing the properties.

Refreshes the control, including headers, background cells, and events.

Partial Update

Since build 1748 it is possible to update selected properties passed using the "options" parameter.

dp.update({ separators: [{color:"red", location: new DayPilot.Date()}] });

Supported properties:

  • separators (build 1748)
  • events (build 1749)
  • rowHeaderColumns (build 1973; works only if passed as a single option - doesn't work if events or separators update is requested)

AngularJS Example

Note: The DayPilot.Scheduler object is stored in the $scope under the name specified using id attribute ($scope.dp in this example).

<div ng-app="main" ng-controller="SchedulerCtrl" >
  <daypilot-scheduler id="dp" daypilot-config="config" daypilot-events="events" ></daypilot-scheduler>
      <button ng-click="update()">Refresh the Scheduler</button>

  var app = angular.module('main', ['daypilot']).controller('SchedulerCtrl', function($scope) {
  // ...

      $scope.update = function() {

  // ...

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java