setCurrentView

displays the specified view and date

void setCurrentView( [Date date,string view] );
dateDatethe date to display
viewstringthe name of a view to display

Example

//displays the current view and date. Doesn't change anything, just refreshes 
scheduler.setCurrentView();
// displays the 4th July,2012 in the currently active view
scheduler.setCurrentView(new Date(2012,7,4));
// displays the 3rd May,2012 in the Week view
scheduler.setCurrentView(new Date(2012,5,3), "week");

Related samples

Details
  • The names for default views are 'day', 'week', 'month'. To specify any other view - use its name parameter.
  • The method invokes the onBeforeViewChange, onViewChange.
  • The method is similar to updateView. The only difference between methods is that updateView doesn't generate any events.
See also
Back to top