jqxScheduler Recurring appointments example.
A live JavaScript/jQuery example of jqxScheduler, the jQWidgets Scheduler component, with its complete source code below. It is one of 45 jqxScheduler demos for jQuery.
appointmentDataFields property – Sets or gets the appointments data fields.date property – Sets or gets the Scheduler's Date.height property – Sets or gets the Scheduler's height.ready property – Sets a function called when the Scheduler is rendered and ready for usage.source property – Sets or gets the Scheduler appointments data source.views property – Sets or gets the Scheduler's views.view property – Sets or gets the Scheduler's view.width property – Sets or gets the Scheduler's width.ensureAppointmentVisible method – Scrolls to an appointment if it is out of the visible area.To run it in your own page, load jqx.base.css, a theme and the library files below from npm (npm install jqwidgets-scripts) or the jsDelivr CDN, then add the markup and the script. jQuery is not required: jqxcore.js provides $. Getting started with jqxScheduler shows the setup step by step.
The page loads jqx.base.css, a theme and these library files: jqxcore.js, jqxbuttons.js, jqxscrollbar.js, jqxdata.js, jqxdate.js, jqxscheduler.js, jqxscheduler.api.js, jqxdatetimeinput.js, jqxmenu.js, jqxcalendar.js, jqxtooltip.js, jqxwindow.js, jqxcheckbox.js, jqxlistbox.js, jqxdropdownlist.js, jqxnumberinput.js, jqxradiobutton.js, jqxinput.js.
It also loads helper scripts of this demo site, which are not part of the library: demos.js (getWidth() and other layout helpers).
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id4",
description: "",
style: "#AA4643",
location: "",
subject: "New Projects Planning",
calendar: "Room 2",
from: new Date(2026, 10, 22, 8, 0, 0),
to: new Date(2026, 10, 22, 13, 0, 0)
}
var appointment2 = {
id: "id5",
description: "",
style: "#89A54E",
location: "",
subject: "Interview with James",
calendar: "Room 1",
from: new Date(2026, 10, 25, 13, 0, 0),
to: new Date(2026, 10, 25, 15, 0, 0)
}
var appointment3 = {
id: "id6",
description: "",
style: "#71588F",
location: "",
subject: "Interview with Nancy",
calendar: "Room 2",
from: new Date(2026, 10, 26, 14, 0, 0),
to: new Date(2026, 10, 26, 16, 0, 0)
}
var appointment4 = {
id: "id7",
description: "",
style: "#307DD7",
location: "",
subject: "Daily Meeting",
calendar: "Room 1",
recurrenceRule: "FREQ=DAILY;",
recurrenceException: "2026-11-24 09:00:00,2026-11-26 12:00:00",
from: new Date(2026, 10, 23, 10, 0, 0),
to: new Date(2026, 10, 23, 11, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
// prepare the data
var source =
{
dataType: "array",
dataFields: [
{ name: 'id', type: 'string' },
{ name: 'description', type: 'string' },
{ name: 'location', type: 'string' },
{ name: 'subject', type: 'string' },
{ name: 'calendar', type: 'string' },
{ name: 'recurrenceRule', type: 'string' },
{ name: 'recurrenceException', type: 'string' },
{ name: 'style', type: 'string' },
{ name: 'from', type: 'date' },
{ name: 'to', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2026, 11, 23),
width: getWidth("Scheduler"),
height: 600,
source: adapter,
ready: function()
{
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id7');
},
appointmentDataFields:
{
from: "from",
to: "to",
id: "id",
description: "description",
location: "place",
style: "style",
subject: "subject",
resourceId: "calendar",
recurrencePattern: "recurrenceRule",
recurrenceException: "recurrenceException"
},
view: "weekView",
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
<div id="scheduler"></div>