General How-Tos

How to add an event?

Scheduler data are loaded via parse or load methods. If you need to add a single event you can use the add method and pass event object in it:

     start_date:"2015-06-01 09:00:00",
     end_date:"2015-06-01 10:00:00",

How to remove an event?

Use the remove method to remove an event by its id:


How to change event properties?

To change event properties you need to do the following:

  • get the event object
  • change properties of the event object
  • redraw the event
var event = $$("scheduler").getItem(eventId);
event.text = "Meeting";

How to hide a button?

You can use the hide method to hide a certain view in Scheduler. Here you may find details about Scheduler structure.

For example, if you want to hide the "add" button, you can do the following:


How to handle event choosing?

When an event is chosen in one of the lists, Scheduler fires the "onBeforeEventShow" event. If this event returns false, a form with event details won't be shown:

   // your code
   return true;
Back to top