showEvent

shows and highlights the specified event in the current or specified view

void showEvent(string id, [string view] );

Parameters

idstringthe event's id
viewstringthe view name

Example

//shows the event with 'id=someId' in the Week view
scheduler.showEvent(someId,"week");
 
//shows the event with 'id=someId' in the currently active view
scheduler.showEvent(someId);

Related samples

Details

For example, you programmatically add a new event and want to show it in the scheduler:

var eventId = scheduler.addEvent({
    start_date: "08-06-2013 09:00",
    end_date:   "08-06-2013 11:00",
    text:   "Meeting"
});
...
scheduler.showEvent(eventId);

Back to top