Search
Calendar.repaint Method
See Also
 






Repaints the calendar contents.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

function repaint ([full])

 Parameters

full
Optional.

Boolean. True to recreate calendar items, otherwise false.

 Example

The following code uses a button click handler to repaint the Calendar associated with a custom form that inherits BaseForm:

JavaScript  Copy Code

onSaveButtonClick(e) {
  // update the item with the form data
  this.item.subject = this.getControlValue("subject");
  
  // if a new item is created, add it to the schedule.items collection
  if (this.type === "new")
   this.calendar.schedule.items.add(this.item);

  // close the form
  this.closeForm();

  // repaint the calendar
  this.calendar.repaint(true);
 }

 See Also