Properties

read
Name Type Default
appointmentOpacity Boolean false

Sets or gets the appointments opacity.

Code example

Set the appointmentOpacity property.

$("#jqxScheduler").jqxScheduler({ appointmentOpacity: 0.7 }); 

Get the appointmentOpacity property.

var appointmentOpacity = $('#jqxScheduler').jqxScheduler('appointmentOpacity');
appointmentsMinHeight Number 18

Sets or gets the minimum height of appointments in the all day area, month view and timeline views.

Code example

Set the appointmentsMinHeight property.

$("#jqxScheduler").jqxScheduler({ appointmentsMinHeight: 30 });
 

Get the appointmentsMinHeight property.

var appointmentsMinHeight = $('#jqxScheduler').jqxScheduler('appointmentsMinHeight');
appointmentDataFields Object

{
 allDay: "allDay",
 background: "background",
 borderColor: "borderColor",
 color: "color",
 description: "description",
 draggable: "draggable",
 from: "from",
 hidden: "hidden",
 id: "id",
 location: "location",
 recurrencePattern: "recurrencePattern",
 recurrenceException: "recurrenceException",
 resizable: "resizable",
 resourceId: "resourceId",
 readOnly: "readOnly",
 subject: "subject",
 style: "style",
 status: "status",
 to: "to",
 tooltip: "tooltip",
 timeZone: "timeZone"
}

Sets or gets the appointments data fields. A data field should match a field defined in the dataAdapter's source object. For example: If your have a data field called "start" in your source object, you should add 'from: "start"' in the appointmentDataFields definition.

  • allDay - boolean field. Defines whether the appointment is all day appointment.
  • background - string field. Expects Hex string. Defines the appointment's background.
  • borderColor - string field. Expects Hex string. Defines the appointment's border color.
  • color - string field. Expects Hex string. Defines the appointment's text color.
  • description - string field. Defines the appointment's description.
  • draggable - boolean field. Defines whether the user can drag the appointment.
  • from - jqxDate field. Defines the appointment's start.
  • hidden - boolean field. Defines whether the appointment is displayed.
  • id - string/number field. Defines the Id of the appointment.
  • location - string field. Defines the appointment's location.
  • recurrencePattern - string field. Defines the appointment's recurrence rule. Ex: "FREQ=DAILY;". List of supported keywords:
    • FREQ - "DAILY" / "WEEKLY" / "MONTHLY" / "YEARLY". The FREQ rule part identifies the type of recurrence rule. This rule part MUST be specified in the recurrence rule.
    • COUNT - Number. The Count rule part defines the number of occurrences at which to range-bound the recurrence.
    • UNTIL - String like "UNTIL=20160919T210000Z". The UNTIL rule part defines a date-time value where the recurrence ends.
    • BYDAY - String like "MO,TU". The BYDAY rule part specifies a COMMA character (US-ASCII decimal 44) separated list of days of the week; MO indicates Monday; TU indicates Tuesday; WE indicates Wednesday; TH indicates Thursday; FR indicates Friday; SA indicates Saturday; SU indicates Sunday. Each BYDAY value can also be preceded by a positive (+n) or negative (-n) integer. If present, this indicates the nth occurrence of the specific day within the MONTHLY or YEARLY RRULE. For example, within a MONTHLY rule, +1MO (or simply 1MO) represents the first Monday within the month, whereas -1MO represents the last Monday of the month.
    • BYMONTHDAY - String like 15, 30. The BYMONTHDAY rule part specifies a COMMA character (ASCII decimal 44) separated list of days of the month. Valid values are 1 to 31
    • BYMONTH - Number like 1. The BYMONTH rule part specifies a month of the year. Valid values are 1 to 12.
    • INTERVAL - Number like 1. The INTERVAL rule part contains a positive integer representing how often the recurrence rule repeats. The default value is "1",
    Examples: "FREQ=WEEKLY;BYDAY=MO,WE", "FREQ=MONTHLY;BYMONTHDAY=10,15;COUNT=20", "FREQ=DAILY;INTERVAL=3;COUNT=10", "FREQ=MONTHLY;BYDAY=-2FR;COUNT=7", "FREQ=YEARLY;COUNT=30;BYMONTH=3"
  • recurrenceException - string field. Defines the exceptions of the recurrence rule. The bound value should be a string or comma separated list of Date strings. Example: "2016-11-24 09:00:00,2016年11月26日 12:00:00"
  • resizable - boolean field. Defines whether the user can resize the appointment.
  • resourceId - string/number field. Defines the appointment's resource.
  • readOnly - boolean field. Defines whether the appointment is editable.
  • subject - string field. Defines the appointment's subject.
  • style - string field. Expects Hex string. Defines the appointment's style. When defined it sets the background, border color and text color of the appointment.
  • status - string field. Defines the appointment's status. See the statuses property for available statuses.
  • to - jqxDate field. Defines the appointment's end.
  • tooltip - string field. Defines the appointment's tooltip displayed on mouse hover.
  • timeZone - string field. Defines the appointment's time zone. See timeZones for the list of timeZones.

Code example

Set the appointmentDataFields property.

$("#jqxScheduler").jqxScheduler({appointmentDataFields:
{
	from: "start",
	to: "end",
	id: "id",
	description: "description",
	location: "place",
	subject: "subject",
	style: "style",
	resourceId: "calendar"
}
});
						

Get the appointmentDataFields property.

var appointmentDataFields = $('#jqxScheduler').jqxScheduler('appointmentDataFields');
appointmentTooltips Boolean true

Sets or gets whether Scheduler appointments are with tooltips enabled.

Code example

Set the appointmentTooltips property.

$("#jqxScheduler").jqxScheduler({ appointmentTooltips: true });
						

Get the appointmentTooltips property.

var appointmentTooltips = $('#jqxScheduler').jqxScheduler('appointmentTooltips');
columnsHeight Number 30

Sets or gets the Schedulers' columns height.

Code example

Set the columnsHeight property.

$("#jqxScheduler").jqxScheduler({ columnsHeight: 35 });
						

Get the columnsHeight property.

var columnsHeight = $('#jqxScheduler').jqxScheduler('columnsHeight');
contextMenu Boolean true

Sets or gets whether the Scheduler's context menu is enabled.

Code example

Set the contextMenu property.

$("#jqxScheduler").jqxScheduler({ contextMenu: false });
						

Get the contextMenu property.

var contextMenu = $('#jqxScheduler').jqxScheduler('contextMenu');
contextMenuOpen Function null

Sets or gets a function called when the context menu is opened.

Code example

Set the contextMenuOpen property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2016, 10, 23, 9, 0, 0),
end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2016, 10, 24, 10, 0, 0),
end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2016, 10, 27, 11, 0, 0),
end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "New Projects Planning",
calendar: "Room 2",
start: new Date(2016, 10, 23, 16, 0, 0),
end: new Date(2016, 10, 23, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Interview with James",
calendar: "Room 1",
start: new Date(2016, 10, 25, 15, 0, 0),
end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Interview with Nancy",
calendar: "Room 4",
start: new Date(2016, 10, 26, 14, 0, 0),
end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 1,
showLegend: true,
/**
* called when the context menu is created.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} settings - Object with the menu's initialization settings.
*/
contextMenuCreate: function(menu, settings)
{
var source = settings.source;
source.push({ id: "delete", label: "Delete Appointment" });
source.push({
id: "status", label: "Set Status", items:
[
{ label: "Free", id: "free" },
{ label: "Out of Office", id: "outOfOffice" },
{ label: "Tentative", id: "tentative" },
{ label: "Busy", id: "busy" }
]
});
},
/**
* called when the user clicks an item in the Context Menu. Returning true as a result disables the built-in Click handler.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected appointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the jqxMenu's itemclick event object.
*/
contextMenuItemClick: function (menu, appointment, event)
{
var args = event.args;
switch (args.id) {
case "delete":
$("#scheduler").jqxScheduler('deleteAppointment', appointment.id);
return true;
case "free":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'free');
return true;
case "outOfOffice":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'outOfOffice');
return true;
case "tentative":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'tentative');
return true;
case "busy":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'busy');
return true;
}
},
/**
* called when the menu is opened.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected appointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the open event.
*/
contextMenuOpen: function (menu, appointment, event) {
if (!appointment) {
menu.jqxMenu('hideItem', 'delete');
menu.jqxMenu('hideItem', 'status');
}
else {
menu.jqxMenu('showItem', 'delete');
menu.jqxMenu('showItem', 'status');
}
},
/**
* called when the menu is closed.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected appointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the close event.
*/
contextMenuClose: function (menu, appointment, event) {
},
ready: function () {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
},
resources:
{
colorScheme: "scheme02",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the contextMenuOpen property.

var contextMenuOpen = $('#jqxScheduler').jqxScheduler('contextMenuOpen');
contextMenuClose Function null

Sets or gets a function called when the context menu is closed.

Code example

Set the contextMenuClose property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2016, 10, 23, 9, 0, 0),
end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2016, 10, 24, 10, 0, 0),
end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2016, 10, 27, 11, 0, 0),
end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "New Projects Planning",
calendar: "Room 2",
start: new Date(2016, 10, 23, 16, 0, 0),
end: new Date(2016, 10, 23, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Interview with James",
calendar: "Room 1",
start: new Date(2016, 10, 25, 15, 0, 0),
end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Interview with Nancy",
calendar: "Room 4",
start: new Date(2016, 10, 26, 14, 0, 0),
end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 1,
showLegend: true,
/**
* called when the context menu is created.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} settings - Object with the menu's initialization settings.
*/
contextMenuCreate: function(menu, settings)
{
var source = settings.source;
source.push({ id: "delete", label: "Delete Appointment" });
source.push({
id: "status", label: "Set Status", items:
[
{ label: "Free", id: "free" },
{ label: "Out of Office", id: "outOfOffice" },
{ label: "Tentative", id: "tentative" },
{ label: "Busy", id: "busy" }
]
});
},
/**
* called when the user clicks an item in the Context Menu. Returning true as a result disables the built-in Click handler.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the jqxMenu's itemclick event object.
*/
contextMenuItemClick: function (menu, appointment, event)
{
var args = event.args;
switch (args.id) {
case "delete":
$("#scheduler").jqxScheduler('deleteAppointment', appointment.id);
return true;
case "free":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'free');
return true;
case "outOfOffice":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'outOfOffice');
return true;
case "tentative":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'tentative');
return true;
case "busy":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'busy');
return true;
}
},
/**
* called when the menu is opened.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the open event.
*/
contextMenuOpen: function (menu, appointment, event) {
if (!appointment) {
menu.jqxMenu('hideItem', 'delete');
menu.jqxMenu('hideItem', 'status');
}
else {
menu.jqxMenu('showItem', 'delete');
menu.jqxMenu('showItem', 'status');
}
},
/**
* called when the menu is closed.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the close event.
*/
contextMenuClose: function (menu, appointment, event) {
},
ready: function () {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
},
resources:
{
colorScheme: "scheme02",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the contextMenuClose property.

var contextMenuClose = $('#jqxScheduler').jqxScheduler('contextMenuClose');
contextMenuItemClick Function null

Sets or gets a function called when a context menu item is clicked.

Code example

Set the contextMenuItemClick property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2016, 10, 23, 9, 0, 0),
end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2016, 10, 24, 10, 0, 0),
end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2016, 10, 27, 11, 0, 0),
end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "New Projects Planning",
calendar: "Room 2",
start: new Date(2016, 10, 23, 16, 0, 0),
end: new Date(2016, 10, 23, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Interview with James",
calendar: "Room 1",
start: new Date(2016, 10, 25, 15, 0, 0),
end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Interview with Nancy",
calendar: "Room 4",
start: new Date(2016, 10, 26, 14, 0, 0),
end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 1,
showLegend: true,
/**
* called when the context menu is created.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} settings - Object with the menu's initialization settings.
*/
contextMenuCreate: function(menu, settings)
{
var source = settings.source;
source.push({ id: "delete", label: "Delete Appointment" });
source.push({
id: "status", label: "Set Status", items:
[
{ label: "Free", id: "free" },
{ label: "Out of Office", id: "outOfOffice" },
{ label: "Tentative", id: "tentative" },
{ label: "Busy", id: "busy" }
]
});
},
/**
* called when the user clicks an item in the Context Menu. Returning true as a result disables the built-in Click handler.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the jqxMenu's itemclick event object.
*/
contextMenuItemClick: function (menu, appointment, event)
{
var args = event.args;
switch (args.id) {
case "delete":
$("#scheduler").jqxScheduler('deleteAppointment', appointment.id);
return true;
case "free":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'free');
return true;
case "outOfOffice":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'outOfOffice');
return true;
case "tentative":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'tentative');
return true;
case "busy":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'busy');
return true;
}
},
/**
* called when the menu is opened.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the open event.
*/
contextMenuOpen: function (menu, appointment, event) {
if (!appointment) {
menu.jqxMenu('hideItem', 'delete');
menu.jqxMenu('hideItem', 'status');
}
else {
menu.jqxMenu('showItem', 'delete');
menu.jqxMenu('showItem', 'status');
}
},
/**
* called when the menu is closed.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the close event.
*/
contextMenuClose: function (menu, appointment, event) {
},
ready: function () {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
},
resources:
{
colorScheme: "scheme02",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the contextMenuItemClick property.

var contextMenuItemClick = $('#jqxScheduler').jqxScheduler('contextMenuItemClick');
contextMenuCreate Function null

Sets or gets a function called when the context menu is created.

Code example

Set the contextMenuCreate property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2016, 10, 23, 9, 0, 0),
end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2016, 10, 24, 10, 0, 0),
end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2016, 10, 27, 11, 0, 0),
end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "New Projects Planning",
calendar: "Room 2",
start: new Date(2016, 10, 23, 16, 0, 0),
end: new Date(2016, 10, 23, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Interview with James",
calendar: "Room 1",
start: new Date(2016, 10, 25, 15, 0, 0),
end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Interview with Nancy",
calendar: "Room 4",
start: new Date(2016, 10, 26, 14, 0, 0),
end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 1,
showLegend: true,
/**
* called when the context menu is created.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} settings - Object with the menu's initialization settings.
*/
contextMenuCreate: function(menu, settings)
{
var source = settings.source;
source.push({ id: "delete", label: "Delete Appointment" });
source.push({
id: "status", label: "Set Status", items:
[
{ label: "Free", id: "free" },
{ label: "Out of Office", id: "outOfOffice" },
{ label: "Tentative", id: "tentative" },
{ label: "Busy", id: "busy" }
]
});
},
/**
* called when the user clicks an item in the Context Menu. Returning true as a result disables the built-in Click handler.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the jqxMenu's itemclick event object.
*/
contextMenuItemClick: function (menu, appointment, event)
{
var args = event.args;
switch (args.id) {
case "delete":
$("#scheduler").jqxScheduler('deleteAppointment', appointment.id);
return true;
case "free":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'free');
return true;
case "outOfOffice":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'outOfOffice');
return true;
case "tentative":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'tentative');
return true;
case "busy":
$("#scheduler").jqxScheduler('setAppointmentProperty', appointment.id, 'status', 'busy');
return true;
}
},
/**
* called when the menu is opened.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the open event.
*/
contextMenuOpen: function (menu, appointment, event) {
if (!appointment) {
menu.jqxMenu('hideItem', 'delete');
menu.jqxMenu('hideItem', 'status');
}
else {
menu.jqxMenu('showItem', 'delete');
menu.jqxMenu('showItem', 'status');
}
},
/**
* called when the menu is closed.
* @param {Object} menu - jqxMenu's jQuery object.
* @param {Object} the selected jqxAppointment instance or NULL when the menu is opened from cells selection.
* @param {jQuery.Event Object} the close event.
*/
contextMenuClose: function (menu, appointment, event) {
},
ready: function () {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
},
resources:
{
colorScheme: "scheme02",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the contextMenuCreate property.

var contextMenuCreate = $('#jqxScheduler').jqxScheduler('contextMenuCreate');
changedAppointments Array []

Gets an array with newly added, deleted or updated appointments. Each element in the Array is an Object which has:

  • type - "Update", "Delete", "Add".
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Get the changedAppointments property.

var changedAppointments = $('#jqxScheduler').jqxScheduler('changedAppointments');
disabled Boolean false

Sets or gets whether the Scheduler is disabled.

Code example

Set the disabled property.

$("#jqxScheduler").jqxScheduler({ disabled: true });
						

Get the disabled property.

var disabled = $('#jqxScheduler').jqxScheduler('disabled');
date jqxDate new $.jqx.date('todayDate')

Sets or gets the Scheduler's Date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic.

Code example

Set the date property.

$("#jqxScheduler").jqxScheduler({ date: new $.jqx.date('todayDate') });
						

Get the date property.

var date = $('#jqxScheduler').jqxScheduler('date');
dayNameFormat string 'full'

Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'.

Code example

Set the dayNameFormat property.

$("#jqxScheduler").jqxScheduler({ dayNameFormat: 'abbr') });
						

Get the dayNameFormat property.

var dayNameFormat = $('#jqxScheduler').jqxScheduler('dayNameFormat');
enableHover Boolean true

Sets or gets whether cells hover is enabled.

Code example

Set the enableHover property.

$("#jqxScheduler").jqxScheduler({ enableHover: false) });
						

Get the enableHover property.

var enableHover = $('#jqxScheduler').jqxScheduler('enableHover');
editDialog Boolean true

Sets or gets whether Edit Dialog is enabled.

Code example

Set the editDialog property.

$("#jqxScheduler").jqxScheduler({ editDialog: false) });
						

Get the editDialog property.

var editDialog = $('#jqxScheduler').jqxScheduler('editDialog');
editDialogDateTimeFormatString String "dd/MM/yyyy hh:mm tt"

Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is not allDay appointment.

Code example

Set the editDialogDateTimeFormatString property.

$("#jqxScheduler").jqxScheduler({ editDialogDateTimeFormatString: "dd/MM/yyyy hh:mm tt") });
						

Get the editDialogDateTimeFormatString property.

var editDialogDateTimeFormatString = $('#jqxScheduler').jqxScheduler('editDialogDateTimeFormatString');
editDialogDateFormatString String "dd/MM/yyyy"

Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is allDay appointment.

Code example

Set the editDialogDateFormatString property.

$("#jqxScheduler").jqxScheduler({ editDialogDateFormatString: "dd/MM/yyyy") });
						

Get the editDialogDateFormatString property.

var editDialogDateFormatString = $('#jqxScheduler').jqxScheduler('editDialogDateFormatString');
editDialogOpen Function null

Sets or gets a function called when the Scheduler's Edit Dialog is opened.

Code example

Set the editDialogOpen property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Fashion Expo",
calendar: "East Coast Events",
start: new Date(2016, 10, 15, 9, 0, 0),
end: new Date(2016, 10, 18, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "Cloud Data Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 20, 10, 0, 0),
end: new Date(2016, 10, 22, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Digital Media Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 23, 11, 0, 0),
end: new Date(2016, 10, 28, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Modern Software Development Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 10, 16, 0, 0),
end: new Date(2016, 10, 12, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Marketing Future Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 5, 15, 0, 0),
end: new Date(2016, 10, 6, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Future Computing",
calendar: "East Coast Events",
start: new Date(2016, 10, 13, 14, 0, 0),
end: new Date(2016, 10, 20, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
var printButton = null;
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 2,
showLegend: true,
// called when the dialog is created.
editDialogCreate: function (dialog, fields, editAppointment) {
// hide repeat option
fields.repeatContainer.hide();
// hide status option
fields.statusContainer.hide();
// hide timeZone option
fields.timeZoneContainer.hide();
// hide color option
fields.colorContainer.hide();
fields.subjectLabel.html("Title");
fields.locationLabel.html("Where");
fields.fromLabel.html("Start");
fields.toLabel.html("End");
fields.resourceLabel.html("Calendar");
// add custom print button.
printButton = $("<button style='margin-left: 5px; float:right;'>Print</button>");
fields.buttons.append(printButton);
printButton.jqxButton({ theme: this.theme });
printButton.click(function () {
var appointment = editAppointment;
if (!appointment)
return;
var appointmentContent =
"<table class='printTable'>" +
"<tr>" +
"<td class='label'>Title</td>" +
"<td>" + fields.subject.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Start</td>" +
"<td>" + fields.from.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>End</td>" +
"<td>" + fields.to.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Where</td>" +
"<td>" + fields.location.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Calendar</td>" +
"<td>" + fields.resource.val() + "</td>" +
"</tr>"
+ "</table>";
var newWindow = window.open('', '', 'width=800, height=500'),
document = newWindow.document.open(),
pageContent =
'<!DOCTYPE html>\n' +
'<html>\n' +
'<head>\n' +
'<meta charset="utf-8" />\n' +
'<title>jQWidgets Scheduler</title>\n' +
'<style>\n' +
'.printTable {\n' +
'border-color: #aaa;\n' +
'}\n' +
'.printTable .label {\n' +
'font-weight: bold;\n' +
'}\n' +
'.printTable td{\n' +
'padding: 4px 3px;\n' +
'border: 1px solid #DDD;\n' +
'vertical-align: top;\n' +
'}\n' +
'</style>' +
'</head>\n' +
'<body>\n' + appointmentContent + '\n</body>\n</html>';
document.write(pageContent);
document.close();
newWindow.print();
});
},
/**
* called when the dialog is opened. Returning true as a result disables the built-in handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogOpen: function (dialog, fields, editAppointment) {
if (!editAppointment && printButton) {
printButton.jqxButton({ disabled: true });
}
else if (editAppointment && printButton) {
printButton.jqxButton({ disabled: false });
}
},
/**
* called when the dialog is closed.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogClose: function (dialog, fields, editAppointment) {
},
/**
* called when a key is pressed while the dialog is on focus. Returning true or false as a result disables the built-in keyDown handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
* @param {jQuery.Event Object} the keyDown event.
*/
editDialogKeyDown: function (dialog, fields, editAppointment, event) {
},
resources:
{
colorScheme: "scheme01",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the editDialogOpen property.

var editDialogOpen = $('#jqxScheduler').jqxScheduler('editDialogOpen');
editDialogCreate Function null

Sets or gets a function called when the Scheduler's Edit Dialog is created.

Code example

Set the editDialogCreate property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Fashion Expo",
calendar: "East Coast Events",
start: new Date(2016, 10, 15, 9, 0, 0),
end: new Date(2016, 10, 18, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "Cloud Data Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 20, 10, 0, 0),
end: new Date(2016, 10, 22, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Digital Media Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 23, 11, 0, 0),
end: new Date(2016, 10, 28, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Modern Software Development Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 10, 16, 0, 0),
end: new Date(2016, 10, 12, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Marketing Future Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 5, 15, 0, 0),
end: new Date(2016, 10, 6, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Future Computing",
calendar: "East Coast Events",
start: new Date(2016, 10, 13, 14, 0, 0),
end: new Date(2016, 10, 20, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
var printButton = null;
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 2,
showLegend: true,
// called when the dialog is created.
editDialogCreate: function (dialog, fields, editAppointment) {
// hide repeat option
fields.repeatContainer.hide();
// hide status option
fields.statusContainer.hide();
// hide timeZone option
fields.timeZoneContainer.hide();
// hide color option
fields.colorContainer.hide();
fields.subjectLabel.html("Title");
fields.locationLabel.html("Where");
fields.fromLabel.html("Start");
fields.toLabel.html("End");
fields.resourceLabel.html("Calendar");
// add custom print button.
printButton = $("<button style='margin-left: 5px; float:right;'>Print</button>");
fields.buttons.append(printButton);
printButton.jqxButton({ theme: this.theme });
printButton.click(function () {
var appointment = editAppointment;
if (!appointment)
return;
var appointmentContent =
"<table class='printTable'>" +
"<tr>" +
"<td class='label'>Title</td>" +
"<td>" + fields.subject.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Start</td>" +
"<td>" + fields.from.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>End</td>" +
"<td>" + fields.to.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Where</td>" +
"<td>" + fields.location.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Calendar</td>" +
"<td>" + fields.resource.val() + "</td>" +
"</tr>"
+ "</table>";
var newWindow = window.open('', '', 'width=800, height=500'),
document = newWindow.document.open(),
pageContent =
'<!DOCTYPE html>\n' +
'<html>\n' +
'<head>\n' +
'<meta charset="utf-8" />\n' +
'<title>jQWidgets Scheduler</title>\n' +
'<style>\n' +
'.printTable {\n' +
'border-color: #aaa;\n' +
'}\n' +
'.printTable .label {\n' +
'font-weight: bold;\n' +
'}\n' +
'.printTable td{\n' +
'padding: 4px 3px;\n' +
'border: 1px solid #DDD;\n' +
'vertical-align: top;\n' +
'}\n' +
'</style>' +
'</head>\n' +
'<body>\n' + appointmentContent + '\n</body>\n</html>';
document.write(pageContent);
document.close();
newWindow.print();
});
},
/**
* called when the dialog is opened. Returning true as a result disables the built-in handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogOpen: function (dialog, fields, editAppointment) {
if (!editAppointment && printButton) {
printButton.jqxButton({ disabled: true });
}
else if (editAppointment && printButton) {
printButton.jqxButton({ disabled: false });
}
},
/**
* called when the dialog is closed.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogClose: function (dialog, fields, editAppointment) {
},
/**
* called when a key is pressed while the dialog is on focus. Returning true or false as a result disables the built-in keyDown handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
* @param {jQuery.Event Object} the keyDown event.
*/
editDialogKeyDown: function (dialog, fields, editAppointment, event) {
},
resources:
{
colorScheme: "scheme01",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the editDialogCreate property.

var editDialogCreate = $('#jqxScheduler').jqxScheduler('editDialogCreate');
editDialogKeyDown Function null

Sets or gets a function called when the Scheduler's Edit Dialog is opened and is on focus and key is pressed.

Code example

Set the editDialogKeyDown property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Fashion Expo",
calendar: "East Coast Events",
start: new Date(2016, 10, 15, 9, 0, 0),
end: new Date(2016, 10, 18, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "Cloud Data Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 20, 10, 0, 0),
end: new Date(2016, 10, 22, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Digital Media Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 23, 11, 0, 0),
end: new Date(2016, 10, 28, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Modern Software Development Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 10, 16, 0, 0),
end: new Date(2016, 10, 12, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Marketing Future Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 5, 15, 0, 0),
end: new Date(2016, 10, 6, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Future Computing",
calendar: "East Coast Events",
start: new Date(2016, 10, 13, 14, 0, 0),
end: new Date(2016, 10, 20, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
var printButton = null;
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 2,
showLegend: true,
// called when the dialog is created.
editDialogCreate: function (dialog, fields, editAppointment) {
// hide repeat option
fields.repeatContainer.hide();
// hide status option
fields.statusContainer.hide();
// hide timeZone option
fields.timeZoneContainer.hide();
// hide color option
fields.colorContainer.hide();
fields.subjectLabel.html("Title");
fields.locationLabel.html("Where");
fields.fromLabel.html("Start");
fields.toLabel.html("End");
fields.resourceLabel.html("Calendar");
// add custom print button.
printButton = $("<button style='margin-left: 5px; float:right;'>Print</button>");
fields.buttons.append(printButton);
printButton.jqxButton({ theme: this.theme });
printButton.click(function () {
var appointment = editAppointment;
if (!appointment)
return;
var appointmentContent =
"<table class='printTable'>" +
"<tr>" +
"<td class='label'>Title</td>" +
"<td>" + fields.subject.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Start</td>" +
"<td>" + fields.from.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>End</td>" +
"<td>" + fields.to.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Where</td>" +
"<td>" + fields.location.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Calendar</td>" +
"<td>" + fields.resource.val() + "</td>" +
"</tr>"
+ "</table>";
var newWindow = window.open('', '', 'width=800, height=500'),
document = newWindow.document.open(),
pageContent =
'<!DOCTYPE html>\n' +
'<html>\n' +
'<head>\n' +
'<meta charset="utf-8" />\n' +
'<title>jQWidgets Scheduler</title>\n' +
'<style>\n' +
'.printTable {\n' +
'border-color: #aaa;\n' +
'}\n' +
'.printTable .label {\n' +
'font-weight: bold;\n' +
'}\n' +
'.printTable td{\n' +
'padding: 4px 3px;\n' +
'border: 1px solid #DDD;\n' +
'vertical-align: top;\n' +
'}\n' +
'</style>' +
'</head>\n' +
'<body>\n' + appointmentContent + '\n</body>\n</html>';
document.write(pageContent);
document.close();
newWindow.print();
});
},
/**
* called when the dialog is opened. Returning true as a result disables the built-in handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogOpen: function (dialog, fields, editAppointment) {
if (!editAppointment && printButton) {
printButton.jqxButton({ disabled: true });
}
else if (editAppointment && printButton) {
printButton.jqxButton({ disabled: false });
}
},
/**
* called when the dialog is closed.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogClose: function (dialog, fields, editAppointment) {
},
/**
* called when a key is pressed while the dialog is on focus. Returning true or false as a result disables the built-in keyDown handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
* @param {jQuery.Event Object} the keyDown event.
*/
editDialogKeyDown: function (dialog, fields, editAppointment, event) {
},
resources:
{
colorScheme: "scheme01",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the editDialogKeyDown property.

var editDialogKeyDown = $('#jqxScheduler').jqxScheduler('editDialogKeyDown');
editDialogClose Function null

Sets or gets a function called when the Scheduler's Edit Dialog is closed.

Code example

Set the editDialogClose property.

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
location: "",
subject: "Fashion Expo",
calendar: "East Coast Events",
start: new Date(2016, 10, 15, 9, 0, 0),
end: new Date(2016, 10, 18, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "Cloud Data Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 20, 10, 0, 0),
end: new Date(2016, 10, 22, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Digital Media Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 23, 11, 0, 0),
end: new Date(2016, 10, 28, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Modern Software Development Conference",
calendar: "West Coast Events",
start: new Date(2016, 10, 10, 16, 0, 0),
end: new Date(2016, 10, 12, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Marketing Future Expo",
calendar: "Middle West Events",
start: new Date(2016, 10, 5, 15, 0, 0),
end: new Date(2016, 10, 6, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Future Computing",
calendar: "East Coast Events",
start: new Date(2016, 10, 13, 14, 0, 0),
end: new Date(2016, 10, 20, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
var printButton = null;
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
view: 2,
showLegend: true,
// called when the dialog is created.
editDialogCreate: function (dialog, fields, editAppointment) {
// hide repeat option
fields.repeatContainer.hide();
// hide status option
fields.statusContainer.hide();
// hide timeZone option
fields.timeZoneContainer.hide();
// hide color option
fields.colorContainer.hide();
fields.subjectLabel.html("Title");
fields.locationLabel.html("Where");
fields.fromLabel.html("Start");
fields.toLabel.html("End");
fields.resourceLabel.html("Calendar");
// add custom print button.
printButton = $("<button style='margin-left: 5px; float:right;'>Print</button>");
fields.buttons.append(printButton);
printButton.jqxButton({ theme: this.theme });
printButton.click(function () {
var appointment = editAppointment;
if (!appointment)
return;
var appointmentContent =
"<table class='printTable'>" +
"<tr>" +
"<td class='label'>Title</td>" +
"<td>" + fields.subject.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Start</td>" +
"<td>" + fields.from.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>End</td>" +
"<td>" + fields.to.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Where</td>" +
"<td>" + fields.location.val() + "</td>" +
"</tr>" +
"<tr>" +
"<td class='label'>Calendar</td>" +
"<td>" + fields.resource.val() + "</td>" +
"</tr>"
+ "</table>";
var newWindow = window.open('', '', 'width=800, height=500'),
document = newWindow.document.open(),
pageContent =
'<!DOCTYPE html>\n' +
'<html>\n' +
'<head>\n' +
'<meta charset="utf-8" />\n' +
'<title>jQWidgets Scheduler</title>\n' +
'<style>\n' +
'.printTable {\n' +
'border-color: #aaa;\n' +
'}\n' +
'.printTable .label {\n' +
'font-weight: bold;\n' +
'}\n' +
'.printTable td{\n' +
'padding: 4px 3px;\n' +
'border: 1px solid #DDD;\n' +
'vertical-align: top;\n' +
'}\n' +
'</style>' +
'</head>\n' +
'<body>\n' + appointmentContent + '\n</body>\n</html>';
document.write(pageContent);
document.close();
newWindow.print();
});
},
/**
* called when the dialog is opened. Returning true as a result disables the built-in handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogOpen: function (dialog, fields, editAppointment) {
if (!editAppointment && printButton) {
printButton.jqxButton({ disabled: true });
}
else if (editAppointment && printButton) {
printButton.jqxButton({ disabled: false });
}
},
/**
* called when the dialog is closed.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
*/
editDialogClose: function (dialog, fields, editAppointment) {
},
/**
* called when a key is pressed while the dialog is on focus. Returning true or false as a result disables the built-in keyDown handler.
* @param {Object} dialog - jqxWindow's jQuery object.
* @param {Object} fields - Object with all widgets inside the dialog.
* @param {Object} the selected appointment instance or NULL when the dialog is opened from cells selection.
* @param {jQuery.Event Object} the keyDown event.
*/
editDialogKeyDown: function (dialog, fields, editAppointment, event) {
},
resources:
{
colorScheme: "scheme01",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body>
<div id="scheduler"></div>
</body>
</html>

Get the editDialogClose property.

var editDialogClose = $('#jqxScheduler').jqxScheduler('editDialogClose');
exportSettings Object { serverURL: null, characterSet: null, fileName: "jqxScheduler", dateTimeFormatString: "S", resourcesInMultipleICSFiles: false}

Determines the Data Export settings used by jqxScheduler when exportData is called. See also the exportData method.

List of parameters:
  • serverURL - determines the URL of the save-file.php.
  • characterSet - determines the char set.
  • fileName - determines the file's name. Set this to null if you want to export the data to a local variable.
  • dateTimeFormatString - determines the dates formatting in the exported file.
  • resourcesInMultipleICSFiles - determines whether multiple ICS files will be generated when the Scheduler has resources. Each file will include appointments only from a specific resource.

Code example

Set the exportSettings property.

$("#jqxScheduler").jqxScheduler({exportSettings: { serverURL: null, characterSet: null, fileName: "jqxScheduler"}});

Get the exportSettings property.

var exportSettings = $('#jqxScheduler').jqxScheduler('exportSettings');
height Number/String 600

Sets or gets the Scheduler's height.

Code example

Set the height property.

$("#jqxScheduler").jqxScheduler({ height: 700});
						

Get the height property.

var height = $('#jqxScheduler').jqxScheduler('height');
legendPosition String "bottom"

Sets or gets the Scheduler's legendPosition. Possible values: "top" and "bottom".

Code example

Set the legendPosition property.

$("#jqxScheduler").jqxScheduler({ legendPosition: 'top'});
						

Get the legendPosition property.

var legendPosition = $('#jqxScheduler').jqxScheduler('legendPosition');
legendHeight Number 34

Sets or gets the Scheduler's legend height.

Code example

Set the legendHeight property.

$("#jqxScheduler").jqxScheduler({ legendHeight: 40});
						

Get the legendHeight property.

var legendHeight = $('#jqxScheduler').jqxScheduler('legendHeight');
localization Object

Sets or gets the Scheduler's localization.

Default Localization:

{
	// separator of parts of a date (e.g. '/' in 11/05/1955)
	'/': "/",
	// separator of parts of a time (e.g. ':' in 05:44 PM)
	':': ":",
	// the first day of the week (0 = Sunday, 1 = Monday, etc)
	firstDay: 0,
	days: {
		// full day names
		names: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
		// abbreviated day names
		namesAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
		// shortest day names
		namesShort: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
	},
	months: {
		// full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
		names: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""],
		// abbreviated month names
		namesAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""]
	},
	// AM and PM designators in one of these forms:
	// The usual view, and the upper and lower case versions
	// [standard,lowercase,uppercase]
	// The culture does not use AM or PM (likely all standard date formats use 24 hour time)
	// null
	AM: ["AM", "am", "AM"],
	PM: ["PM", "pm", "PM"],
	eras: [
	// eras in reverse chronological order.
	// name: the name of the era in this culture (e.g. A.D., C.E.)
	// start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
	// offset: offset in years from gregorian calendar
	{"name": "A.D.", "start": null, "offset": 0 }
	],
	twoDigitYearMax: 2029,
	patterns: {
		// short date pattern
		d: "M/d/yyyy",
		// long date pattern
		D: "dddd, MMMM dd, yyyy",
		// short time pattern
		t: "h:mm tt",
		// long time pattern
		T: "h:mm:ss tt",
		// long date, short time pattern
		f: "dddd, MMMM dd, yyyy h:mm tt",
		// long date, long time pattern
		F: "dddd, MMMM dd, yyyy h:mm:ss tt",
		// month/day pattern
		M: "MMMM dd",
		// month/year pattern
		Y: "yyyy MMMM",
		// S is a sortable format that does not vary by culture
		S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",
		// formatting of dates in MySQL DataBases
		ISO: "yyyy-MM-dd hh:mm:ss",
		ISO2: "yyyy-MM-dd HH:mm:ss",
		d1: "dd.MM.yyyy",
		d2: "dd-MM-yyyy",
		d3: "dd-MMMM-yyyy",
		d4: "dd-MM-yy",
		d5: "H:mm",
		d6: "HH:mm",
		d7: "HH:mm tt",
		d8: "dd/MMMM/yyyy",
		d9: "MMMM-dd",
		d10: "MM-dd",
		d11: "MM-dd-yyyy"
	},
 agendaViewString: "Agenda",
 agendaAllDayString: "all day",
 agendaDateColumn: "Date",
 agendaTimeColumn: "Time",
 agendaAppointmentColumn: "Appointment",
	backString: "Back",
	forwardString: "Forward",
	toolBarPreviousButtonString: "previous",
	toolBarNextButtonString: "next",
	emptyDataString: "No data to display",
	loadString: "Loading...",
	clearString: "Clear",
	todayString: "Today",
	dayViewString: "Day",
	weekViewString: "Week",
	monthViewString: "Month",
	timelineDayViewString: "Timeline Day",
	timelineWeekViewString: "Timeline Week",
	timelineMonthViewString: "Timeline Month",
	loadingErrorMessage: "The data is still loading and you cannot set a property or call a method. You can do that once the data binding is completed. jqxScheduler raises the 'bindingComplete' event when the binding is completed.",
	editRecurringAppointmentDialogTitleString: "Edit Recurring Appointment",
	editRecurringAppointmentDialogContentString: "Do you want to edit only this occurrence or the series?",
	editRecurringAppointmentDialogOccurrenceString: "Edit Occurrence",
	editRecurringAppointmentDialogSeriesString: "Edit The Series",
	editDialogTitleString: "Edit Appointment",
	editDialogCreateTitleString: "Create New Appointment",
	contextMenuEditAppointmentString: "Edit Appointment",
	contextMenuCreateAppointmentString: "Create New Appointment",
	editDialogSubjectString: "Subject",
	editDialogLocationString: "Location",
	editDialogFromString: "From",
	editDialogToString: "To",
	editDialogAllDayString: "All day",
	editDialogExceptionsString: "Exceptions",
	editDialogResetExceptionsString: "Reset on Save",
	editDialogDescriptionString: "Description",
	editDialogResourceIdString: "Owner",
	editDialogStatusString: "Status",
	editDialogColorString: "Color",
	editDialogColorPlaceHolderString: "Select Color",
	editDialogTimeZoneString: "Time Zone",
	editDialogSelectTimeZoneString: "Select Time Zone",
	editDialogSaveString: "Save",
	editDialogDeleteString: "Delete",
	editDialogCancelString: "Cancel",
	editDialogRepeatString: "Repeat",
	editDialogRepeatEveryString: "Repeat every",
	editDialogRepeatEveryWeekString: "week(s)",
	editDialogRepeatEveryYearString: "year(s)",
	editDialogRepeatEveryDayString: "day(s)",
	editDialogRepeatNeverString: "Never",
	editDialogRepeatDailyString: "Daily",
	editDialogRepeatWeeklyString: "Weekly",
	editDialogRepeatMonthlyString: "Monthly",
	editDialogRepeatYearlyString: "Yearly",
	editDialogRepeatEveryMonthString: "month(s)",
	editDialogRepeatEveryMonthDayString: "Day",
	editDialogRepeatFirstString: "first",
	editDialogRepeatSecondString: "second",
	editDialogRepeatThirdString: "third",
	editDialogRepeatFourthString: "fourth",
	editDialogRepeatLastString: "last",
	editDialogRepeatEndString: "End",
	editDialogRepeatAfterString: "After",
	editDialogRepeatOnString: "On",
	editDialogRepeatOfString: "of",
	editDialogRepeatOccurrencesString: "occurrence(s)",
	editDialogRepeatSaveString: "Save Occurrence",
	editDialogRepeatSaveSeriesString: "Save Series",
	editDialogRepeatDeleteString: "Delete Occurrence",
	editDialogRepeatDeleteSeriesString: "Delete Series",
	editDialogStatuses:
	{
		free: "Free",
		tentative: "Tentative",
		busy: "Busy",
		outOfOffice: "Out of Office"
	},
 loadingErrorMessage: "The data is still loading and you cannot set a property or call a method. You can do that once the data binding is completed. jqxScheduler raises the 'bindingComplete' event when the binding is completed.",	
}

Code example

Set the localization property.

<!DOCTYPE html>
<html lang="en">
<head>
<title id='Description'>jqxScheduler first demo.
</title>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../scripts/demos.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdate.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxscheduler.api.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxradiobutton.js"></script>
<script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript" src="../../jqwidgets/globalization/globalize.culture.de-DE.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "",
location: "",
subject: "Projektsitzung",
calendar: "Zimmer 1",
start: new Date(2016, 10, 23, 9, 0, 0),
end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
id: "id2",
description: "",
location: "",
subject: "IT Gruppentreffen",
calendar: "Zimmer 2",
start: new Date(2016, 10, 24, 10, 0, 0),
end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
id: "id3",
description: "",
location: "",
subject: "Soziale Treffen",
calendar: "Zimmer 3",
start: new Date(2016, 10, 27, 11, 0, 0),
end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
id: "id4",
description: "",
location: "",
subject: "Projekte Planung",
calendar: "Zimmer 2",
start: new Date(2016, 10, 23, 16, 0, 0),
end: new Date(2016, 10, 23, 18, 0, 0)
}
var appointment5 = {
id: "id5",
description: "",
location: "",
subject: "Interveiw mit Jan",
calendar: "Zimmer 1",
start: new Date(2016, 10, 25, 15, 0, 0),
end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
id: "id6",
description: "",
location: "",
subject: "Interveiw mit Alberta",
calendar: "Zimmer 4",
start: new Date(2016, 10, 26, 14, 0, 0),
end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
showLegend: true,
// called when the dialog is craeted.
editDialogCreate: function (dialog, fields, editAppointment) {
fields.timeZoneContainer.hide();
},
localization: {
// separator of parts of a date (e.g. '/' in 11/05/1955)
'/': "/",
// separator of parts of a time (e.g. ':' in 05:44 PM)
':': ":",
// the first day of the week (0 = Sunday, 1 = Monday, etc)
firstDay: 1,
days: {
// full day names
names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
// abbreviated day names
namesAbbr: ["Sonn", "Mon", "Dien", "Mitt", "Donn", "Fre", "Sams"],
// shortest day names
namesShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]
},
months: {
// full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""],
// abbreviated month names
namesAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dez", ""]
},
// AM and PM designators in one of these forms:
// The usual view, and the upper and lower case versions
// [standard,lowercase,uppercase]
// The culture does not use AM or PM (likely all standard date formats use 24 hour time)
// null
AM: ["AM", "am", "AM"],
PM: ["PM", "pm", "PM"],
eras: [
// eras in reverse chronological order.
// name: the name of the era in this culture (e.g. A.D., C.E.)
// start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
// offset: offset in years from gregorian calendar
{ "name": "A.D.", "start": null, "offset": 0 }
],
twoDigitYearMax: 2029,
patterns: {
// short date pattern
d: "M/d/yyyy",
// long date pattern
D: "dddd, MMMM dd, yyyy",
// short time pattern
t: "h:mm tt",
// long time pattern
T: "h:mm:ss tt",
// long date, short time pattern
f: "dddd, MMMM dd, yyyy h:mm tt",
// long date, long time pattern
F: "dddd, MMMM dd, yyyy h:mm:ss tt",
// month/day pattern
M: "MMMM dd",
// month/year pattern
Y: "yyyy MMMM",
// S is a sortable format that does not vary by culture
S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",
// formatting of dates in MySQL DataBases
ISO: "yyyy-MM-dd hh:mm:ss",
ISO2: "yyyy-MM-dd HH:mm:ss",
d1: "dd.MM.yyyy",
d2: "dd-MM-yyyy",
d3: "dd-MMMM-yyyy",
d4: "dd-MM-yy",
d5: "H:mm",
d6: "HH:mm",
d7: "HH:mm tt",
d8: "dd/MMMM/yyyy",
d9: "MMMM-dd",
d10: "MM-dd",
d11: "MM-dd-yyyy"
},
backString: "Vorhergehende",
forwardString: "Nächster",
toolBarPreviousButtonString: "Vorhergehende",
toolBarNextButtonString: "Nächster",
emptyDataString: "Nokeine Daten angezeigt",
loadString: "Loading...",
clearString: "Löschen",
todayString: "Heute",
dayViewString: "Tag",
weekViewString: "Woche",
monthViewString: "Monat",
timelineDayViewString: "Zeitleiste Day",
timelineWeekViewString: "Zeitleiste Woche",
timelineMonthViewString: "Zeitleiste Monat",
loadingErrorMessage: "Die Daten werden noch geladen und Sie können eine Eigenschaft nicht festgelegt oder eine Methode aufrufen . Sie können tun, dass, sobald die Datenbindung abgeschlossen ist. jqxScheduler wirft die ' bindingComplete ' Ereignis, wenn die Bindung abgeschlossen ist.",
editRecurringAppointmentDialogTitleString: "Bearbeiten Sie wiederkehrenden Termin",
editRecurringAppointmentDialogContentString: "Wollen Sie nur dieses eine Vorkommen oder die Serie zu bearbeiten ?",
editRecurringAppointmentDialogOccurrenceString: "Vorkommen bearbeiten",
editRecurringAppointmentDialogSeriesString: "Bearbeiten Die Serie",
editDialogTitleString: "Termin bearbeiten",
editDialogCreateTitleString: "Erstellen Sie Neuer Termin",
contextMenuEditAppointmentString: "Termin bearbeiten",
contextMenuCreateAppointmentString: "Erstellen Sie Neuer Termin",
editDialogSubjectString: "Subjekt",
editDialogLocationString: "Ort",
editDialogFromString: "Von",
editDialogToString: "Bis",
editDialogAllDayString: "Den ganzen Tag",
editDialogExceptionsString: "Ausnahmen",
editDialogResetExceptionsString: "Zurücksetzen auf Speichern",
editDialogDescriptionString: "Bezeichnung",
editDialogResourceIdString: "Kalender",
editDialogStatusString: "Status",
editDialogColorString: "Farbe",
editDialogColorPlaceHolderString: "Farbe wählen",
editDialogTimeZoneString: "Zeitzone",
editDialogSelectTimeZoneString: "Wählen Sie Zeitzone",
editDialogSaveString: "Sparen",
editDialogDeleteString: "Löschen",
editDialogCancelString: "Abbrechen",
editDialogRepeatString: "Wiederholen",
editDialogRepeatEveryString: "Wiederholen alle",
editDialogRepeatEveryWeekString: "woche(n)",
editDialogRepeatEveryYearString: "Jahr (en)",
editDialogRepeatEveryDayString: "Tag (e)",
editDialogRepeatNeverString: "Nie",
editDialogRepeatDailyString: "Täglich",
editDialogRepeatWeeklyString: "Wöchentlich",
editDialogRepeatMonthlyString: "Monatlich",
editDialogRepeatYearlyString: "Jährlich",
editDialogRepeatEveryMonthString: "Monate (n)",
editDialogRepeatEveryMonthDayString: "Day",
editDialogRepeatFirstString: "erste",
editDialogRepeatSecondString: "zweite",
editDialogRepeatThirdString: "dritte",
editDialogRepeatFourthString: "vierte",
editDialogRepeatLastString: "letzte",
editDialogRepeatEndString: "Ende",
editDialogRepeatAfterString: "Nach",
editDialogRepeatOnString: "Am",
editDialogRepeatOfString: "von",
editDialogRepeatOccurrencesString: "Eintritt (e)",
editDialogRepeatSaveString: "Vorkommen Speichern",
editDialogRepeatSaveSeriesString: "Save Series",
editDialogRepeatDeleteString: "Vorkommen löschen",
editDialogRepeatDeleteSeriesString: "Series löschen",
editDialogStatuses:
{
free: "Frei",
tentative: "Versuchsweise",
busy: "Beschäftigt",
outOfOffice: "Ausserhaus"
}
},
ready: function () {
$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
},
resources:
{
colorScheme: "scheme05",
dataField: "calendar",
source: new $.jqx.dataAdapter(source)
},
appointmentDataFields:
{
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
view: 'weekView',
views:
[
'dayView',
'weekView',
'monthView'
]
});
});
</script>
</head>
<body class='default'>
<div id="scheduler"></div>
</body>
</html>

Get the localization property.

var localization = $('#jqxScheduler').jqxScheduler('localization');
min jqxDate new $.jqx.date(0)

Sets or gets the Scheduler's minimum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic.

Code example

Set the min property.

$("#jqxScheduler").jqxScheduler({ min: new $.jqx.date(0) });
						

Get the min property.

var min = $('#jqxScheduler').jqxScheduler('min');
max jqxDate new $.jqx.date(9999, 12, 31),

Sets or gets the Scheduler's maximum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic.

Code example

Set the max property.

$("#jqxScheduler").jqxScheduler({ max: new $.jqx.date(9999, 12, 31) });
						

Get the max property.

var max = $('#jqxScheduler').jqxScheduler('max');
ready Function null

Sets a function called when the Scheduler is rendered and ready for usage.

Code example

Set the ready property.


// prepare the data
var source =
{
	dataType: 'json',
	dataFields: [
		{ name: 'id', type: 'string' },
		{ name: 'status', type: 'string' },
		{ name: 'about', type: 'string' },
		{ name: 'address', type: 'string' },
		{ name: 'company', type: 'string'},
		{ name: 'name', type: 'string' },
		{ name: 'style', type: 'string' },
		{ name: 'calendar', type: 'string' },
		{ name: 'start', type: 'date', format: "yyyy-MM-dd HH:mm" },
		{ name: 'end', type: 'date', format: "yyyy-MM-dd HH:mm" }
	],
	id: 'id',
	url: 'appointments.json'
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
	date: new $.jqx.date(2016, 11, 23),
	width: 850,
	height: 600,
	rowsHeight: 40,
	source: adapter,
	ready: function () {
		// gets scrollbable height.
		var scrollHeight = $("#scheduler").jqxScheduler('scrollHeight');
		// scroll 700px.
		$("#scheduler").jqxScheduler('scrollTop', 700);
	},
	appointmentDataFields:
	{
		from: "start",
		to: "end",
		id: "id",
		description: "about",
		location: "address",
		subject: "name",
		style: "style",
		status: "status"
	},
	view: 'weekView',
	views:
	[
		"dayView",
		"weekView"
	]
});
						
renderAppointment Function null

Sets a function called when the Scheduler is rendering its appointments. The function has one parameter which is Object with the following members:

  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property.
  • width - integer. Gets the appointment's width.
  • height- integer. Gets the appointment's height.
  • textColor - hex string. Gets or sets the appointment's text color.
  • background - hex string. Gets or sets the appointment's background color.
  • borderColor - hex string. Gets or sets the appointment's border color.
  • style - hex string. Gets or sets the appointment's style. This is alternative to textColr, background and borderColor, because it sets them all depending on the HEX string you set.
  • cssClass - string. This can be used for adding CSS Class to the appointment.
  • html - html string. This can be used for replacing the appointment's HTML Content.
  • view - string. Gets the current view - 'dayView', 'weekView', 'monthView', timelineDayView', 'timelineWeekView', 'timelineMonthView'

Code example

Set the renderAppointment property.


$("#scheduler").jqxScheduler({
	date: new $.jqx.date(2016, 11, 23),
	width: 850,
	height: 600,
	source: adapter,
	renderAppointment: function(data)
	{
		// data Object properties
		// appointment - Object with the properties from the Scheduler.s source object.
		// width - int
		// height- int
		// textColor - hex
		// background - hex
		// borderColor - hex
		// style - string
		// cssClass - string
		// html - html string
		// view - string
		var img = "< img style='top: 2px; position: relative;' src='../../images/person.png' /> ";
		if (data.appointment.subject == "Nancy") {
			var img = "< img style='top: 2px; position: relative;' src='../../images/woman.png' /> ";
		}
		else if (data.appointment.subject == "Peter") {
			var img = "< img style='top: 2px; position: relative;' src='../../images/boss.png' /> ";
		}
		else if (data.appointment.subject == "Antony") {
			var img = "< img style='top: 2px; position: relative;' src='../../images/oldboss.png' /> ";
		}
		else if (data.appointment.subject == "John") {
			var img = "< img style='top: 2px; position: relative;' src='../../images/asian.png' /> ";
		}
		if (data.view == "weekView" || data.view == "dayView" || data.view == "monthView") {
			data.html = img + "<i> " + data.appointment.subject + "</i/> ";
			if (data.appointment.id == "id1") {
				data.style = "#AA4643";
			}
			else if (data.appointment.id == "id2" || data.appointment.id == "id6") {
				data.style = "#309B46";
			}
			else if (data.appointment.id == "id3") {
				data.style = "#447F6E";
			}
	}
		return data;
	},
	ready: function () {
		$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
	},
	appointmentDataFields:
	{
		from: "start",
		to: "end",
		id: "id",
		description: "description",
		location: "location",
		subject: "subject",
		style: "style",
		color: "color",
		background: "background",
		borderColor: "borderColor"
	},
	view: 'weekView',
	appointmentsMinHeight: 20,
	views:
	[
		'dayView',
		'weekView',
		'monthView'
	]
});
						
rendering Function null

Sets a function called by the Scheduler when the Scheduler's rendering function is called.

Code example

Set the rendering property.

$("#jqxScheduler").jqxScheduler({ rendering: function(){} });
						
rendered Function null

Sets a function called by the Scheduler when the Scheduler is rendered.

Code example

Set the rendered property.

$("#jqxScheduler").jqxScheduler({ rendered: function(){} });
						
rtl Boolean false

Sets or gets whether the Scheduler is displayed with Right to Left layout.

Code example

Set the rtl property.

$("#jqxScheduler").jqxScheduler({ rtl: true });
						

Get the rtl property.

var rtl = $('#jqxScheduler').jqxScheduler('rtl');
resources Object null

Sets or gets the Scheduler's resource object. The object can have the following members:

  • source - dataAdapter or Array.
  • colorScheme - String which defines the appoinment's style depending on its resourceId. Values from 'scheme01' to 'scheme27'.
  • orientation - String which defines the resources representation. Values - 'none', 'horizontal', 'vertical'.
  • dataField - String which defines the resourceId. If your appointment's resource field is 'calendar', this dataField should be set to 'calendar'.
  • resourceColumnWidth - Integer which defines the Scheduler columns width when 'orientation' is 'horizontal'.
  • resourceRowHeight - Integer which defines the Scheduler resource group row height when 'orientation' is 'vertical'.

Code example

Set the resources property.


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: 'start', type: 'date' },
		{ name: 'end', type: 'date' }
	],
	id: 'id',
	localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
	date: new $.jqx.date(2016, 11, 23),
	width: 850,
	height: 600,
	dayNameFormat: "abbr",
	source: adapter,
	showLegend: true,
	ready: function () {
		$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
	},
	resources:
	{
		colorScheme: "scheme05",
		dataField: "calendar",
		orientation: "horizontal",
		source: new $.jqx.dataAdapter(source)
	},
	appointmentDataFields:
	{
		from: "start",
		to: "end",
		id: "id",
		description: "description",
		location: "place",
		subject: "subject",
		resourceId: "calendar"
	},
	view: 'weekView',
	views:
	[
		'dayView',
		'weekView',
		'monthView'
	]
});						
						

Get the resource property.

var resources = $('#jqxScheduler').jqxScheduler('resources');
rowsHeight Number 27

Sets or gets the Scheduler rows height.

Code example

Set the rowsHeight property. The minimum value is 25.


$('#jqxScheduler').jqxScheduler({rowsHeight: 40});			
						

Get the rowsHeight property.

var rowsHeight = $('#jqxScheduler').jqxScheduler('rowsHeight');
showToolbar Boolean true

Sets or gets whether the Scheduler's navigation toolbar is displayed.

Code example

Set the showToolbar property.


$('#jqxScheduler').jqxScheduler({showToolbar: false});			
						

Get the showToolbar property.

var showToolbar = $('#jqxScheduler').jqxScheduler('showToolbar');
showLegend Boolean false

Sets or gets whether the Scheduler's legend bar is displayed.

Code example

Set the showLegend property.


$('#jqxScheduler').jqxScheduler({showLegend: false});			
						

Get the showLegend property.

var showLegend = $('#jqxScheduler').jqxScheduler('showLegend');
scrollBarSize Number 15

Sets or gets the scrollbars size.

Code example

Set the scrollBarSize property.


$('#jqxScheduler').jqxScheduler({scrollBarSize: 20});			
						

Get the scrollBarSize property.

var scrollBarSize = $('#jqxScheduler').jqxScheduler('scrollBarSize');
source Object null

Sets or gets the Scheduler appointments data source. The property should point to dataAdapter instance.

Code example

Set the source property.


var appointments = new Array();
var appointment1 = {
	id: "id1",
	description: "George brings projector for presentations.",
	location: "",
	subject: "Quarterly Project Review Meeting",
	calendar: "Room 1",
	start: new Date(2016, 10, 23, 9, 0, 0),
	end: new Date(2016, 10, 23, 16, 0, 0)
}
var appointment2 = {
	id: "id2",
	description: "",
	location: "",
	subject: "IT Group Mtg.",
	calendar: "Room 2",
	start: new Date(2016, 10, 24, 10, 0, 0),
	end: new Date(2016, 10, 24, 15, 0, 0)
}
var appointment3 = {
	id: "id3",
	description: "",
	location: "",
	subject: "Course Social Media",
	calendar: "Room 1",
	start: new Date(2016, 10, 27, 11, 0, 0),
	end: new Date(2016, 10, 27, 13, 0, 0)
}
var appointment4 = {
	id: "id4",
	description: "",
	location: "",
	subject: "New Projects Planning",
	calendar: "Room 2",
	start: new Date(2016, 10, 23, 0, 0, 0),
	end: new Date(2016, 10, 25, 23, 59, 59)
}
var appointment5 = {
	id: "id5",
	description: "",
	location: "",
	subject: "Interview with James",
	calendar: "Room 1",
	start: new Date(2016, 10, 25, 15, 0, 0),
	end: new Date(2016, 10, 25, 17, 0, 0)
}
var appointment6 = {
	id: "id6",
	description: "",
	location: "",
	subject: "Interview with Nancy",
	calendar: "Room 2",
	start: new Date(2016, 10, 26, 14, 0, 0),
	end: new Date(2016, 10, 26, 16, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
// 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: 'start', type: 'date' },
		{ name: 'end', type: 'date' }
	],
	id: 'id',
	localData: appointments
};
var adapter = new $.jqx.dataAdapter(source);
$("#scheduler").jqxScheduler({
	date: new $.jqx.date(2016, 11, 23),
	width: 850,
	height: 600,
	dayNameFormat: "abbr",
	source: adapter,
	showLegend: true,
	ready: function () {
		$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
	},
	resources:
	{
		colorScheme: "scheme05",
		dataField: "calendar",
		orientation: "horizontal",
		source: new $.jqx.dataAdapter(source)
	},
	appointmentDataFields:
	{
		from: "start",
		to: "end",
		id: "id",
		description: "description",
		location: "place",
		subject: "subject",
		resourceId: "calendar"
	},
	view: 'weekView',
	views:
	[
		'dayView',
		'weekView',
		'monthView'
	]
});		
						

Get the source property.

var source = $('#jqxScheduler').jqxScheduler('source');
statuses Object

{
	free: "white",
	tentative: "tentative",
	busy: "transparent",
	outOfOffice: "#800080"
 }
				 

Sets or gets the Scheduler appointments statuses.

Code example

Set the statuses property.


$('#jqxScheduler').jqxScheduler({statuses: {
	free: "green",
	tentative: "tentative",
	busy: "transparent",
	doNotDisturb: "orange",
	outOfOffice: "#800080"
 } });
						

Get the statuses property.

var statuses = $('#jqxScheduler').jqxScheduler('statuses');
touchRowsHeight Number 37

Sets or gets the Scheduler rows height on touch device.

Code example

Set the touchRowsHeight property.


$('#jqxScheduler').jqxScheduler({touchRowsHeight: 40});
						

Get the touchRowsHeight property.

var touchRowsHeight = $('#jqxScheduler').jqxScheduler('touchRowsHeight');
theme String ''

Sets the widget's theme.

jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
  • Include the theme's CSS file after jqx.base.css.
    The following code example adds the 'energyblue' theme.
    
    
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.energyblue.css" type="text/css" />
    
  • Set the widget's theme property to 'energyblue' when you initialize it.
touchAppointmentsMinHeight Number 27

Sets or gets the minimum height of appointments on touch devices in the all day area, month view and timeline views.

Code example

Set the touchAppointmentsMinHeight property.


$('#jqxScheduler').jqxScheduler({touchAppointmentsMinHeight: 40});
						

Get the touchAppointmentsMinHeight property.

var touchAppointmentsMinHeight = $('#jqxScheduler').jqxScheduler('touchAppointmentsMinHeight');
touchScrollBarSize Number 18

Sets or gets the scrollbars size on touch devices.

Code example

Set the touchScrollBarSize property.


$('#jqxScheduler').jqxScheduler({touchScrollBarSize: 25});
						

Get the touchScrollBarSize property.

var touchScrollBarSize = $('#jqxScheduler').jqxScheduler('touchScrollBarSize');
timeZone String

Sets or gets the Scheduler's Time Zone. Possible values:


'Dateline Standard Time' - (offsetMinutes: -720, offsetHours: -12, text: '(UTC-12:00) International Date Line West')
'UTC-11' - (offsetMinutes: -660, offsetHours: -11, text: '(UTC-11:00) Coordinated Universal Time-11')
'Hawaiteratoran Standard Time' - (offsetMinutes: -600, offsetHours: -10, text: '(UTC-10:00) Hawaiterator')
'Alaskan Standard Time' - (offsetMinutes: -540, offsetHours: -9, text: '(UTC-09:00) Alaska' ,
'Pacific Standard Time (Mexico)' - (offsetMinutes: -480, offsetHours: -8, text: '(UTC-08:00) Baja California' ,
'Pacific Standard Time' - (offsetMinutes: -480, offsetHours: -8, text: '(UTC-08:00) Pacific Time (US & Canada)' ,
'US Mountain Standard Time' - (offsetMinutes: -420, offsetHours: -7, text: '(UTC-07:00) Arizona')
'Mountain Standard Time (Mexico)' - (offsetMinutes: -420, offsetHours: -7, text: '(UTC-07:00) Chihuahua, La Paz, Mazatlan' ,
'Mountain Standard Time' - (offsetMinutes: -420, offsetHours: -7, text: '(UTC-07:00) Mountain Time (US & Canada)' ,
'Central Standard Time' - (offsetMinutes: -360, offsetHours: -6, text: '(UTC-06:00) Central Time (US & Canada)' ,
'Central America Standard Time' - (offsetMinutes: -360, offsetHours: -6, text: '(UTC-06:00) Central America')
'Canada Central Standard Time' - (offsetMinutes: -360, offsetHours: -6, text: '(UTC-06:00) Saskatchewan')
'Central Standard Time (Mexico)' - (offsetMinutes: -360, offsetHours: -6, text: '(UTC-06:00) Guadalajara, Mexico City, Monterrey' ,
'SA Pacific Standard Time' - (offsetMinutes: -300, offsetHours: -5, text: '(UTC-05:00) Bogota, Lima, Quito, Rio Branco')
'Eastern Standard Time' - (offsetMinutes: -300, offsetHours: -5, text: '(UTC-05:00) Eastern Time (US & Canada)' ,
'US Eastern Standard Time' - (offsetMinutes: -300, offsetHours: -5, text: '(UTC-05:00) Indiana (East)' ,
'Venezuela Standard Time' - (offsetMinutes: -270, offsetHours: -4.5, text: '(UTC-04:30) Caracas')
'Atlantic Standard Time' - (offsetMinutes: -240, offsetHours: -4, text: '(UTC-04:00) Atlantic Time (Canada)' ,
'Paraguay Standard Time' - (offsetMinutes: -240, offsetHours: -4, text: '(UTC-04:00) Asuncion' ,
'Central Brazilian Standard Time' - (offsetMinutes: -240, offsetHours: -4, text: '(UTC-04:00) Cuiaba' ,
'Pacific SA Standard Time' - (offsetMinutes: -240, offsetHours: -4, text: '(UTC-04:00) Santiago' ,
'SA Western Standard Time' - (offsetMinutes: -240, offsetHours: -4, text: '(UTC-04:00) Georgetown, La Paz, Manaus')
'Newfoundland Standard Time' - (offsetMinutes: -210, offsetHours: -3.5, text: '(UTC-03:30) Newfoundland' ,
'SA Eastern Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Cayenne, Fortaleza')
'Argentina Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Buenos Aires' ,
'E. South America Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Brasilia' ,
'Bahia Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Salvador' ,
'Montevideo Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Montevideo' ,
'Greenland Standard Time' - (offsetMinutes: -180, offsetHours: -3, text: '(UTC-03:00) Greenland' ,
'UTC-02' - (offsetMinutes: -120, offsetHours: -2, text: '(UTC-02:00) Coordinated Universal Time-02')
'Mid-Atlantic Standard Time' - (offsetMinutes: -120, offsetHours: -2, text: '(UTC-02:00) Mid-Atlantic - Old' ,
'Azores Standard Time' - (offsetMinutes: -60, offsetHours: -1, text: '(UTC-01:00) Azores' ,
'Cape Verde Standard Time' - (offsetMinutes: -60, offsetHours: -1, text: '(UTC-01:00) Cape Verde Is.')
'Morocco Standard Time' - (offsetMinutes: 0, offsetHours: 0, text: '(UTC) Casablanca' ,
'UTC' - (offsetMinutes: 0, offsetHours: 0, text: '(UTC) Coordinated Universal Time')
'GMT Standard Time' - (offsetMinutes: 0, offsetHours: 0, text: '(UTC) Dublin, Edinburgh, Lisbon, London' ,
'Greenwich Standard Time' - (offsetMinutes: 0, offsetHours: 0, text: '(UTC) Monrovia, Reykjavik')
'Central European Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb' ,
'Namibia Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) Windhoek' ,
'W. Central Africa Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) West Central Africa')
'W. Europe Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) Amsterdam, Berlin, Rome' ,
'Central Europe Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) Belgrade, Budapest, Prague' ,
'Romance Standard Time' - (offsetMinutes: 60, offsetHours: 1, text: '(UTC+01:00) Brussels, Copenhagen, Madrid, Paris' ,
'FLE Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Helsinki, Kyiv, Riga, Sofia' ,
'South Africa Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Harare, Pretoria')
'Turkey Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Istanbul' ,
'GTB Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Athens, Bucharest' ,
'Libya Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Tripoli' ,
'E. Europe Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) E. Europe' ,
'Jordan Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Amman' ,
'Middle East Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Beirut' ,
'Egypt Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Cairo' ,
'Syria Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Damascus' ,
'Israel Standard Time' - (offsetMinutes: 120, offsetHours: 2, text: '(UTC+02:00) Jerusalem' ,
'Arab Standard Time' - (offsetMinutes: 180, offsetHours: 3, text: '(UTC+03:00) Kuwait, Riyadh')
'E. Africa Standard Time' - (offsetMinutes: 180, offsetHours: 3, text: '(UTC+03:00) Nairobi')
'Arabic Standard Time' - (offsetMinutes: 180, offsetHours: 3, text: '(UTC+03:00) Baghdad' ,
'Kaliningrad Standard Time' - (offsetMinutes: 180, offsetHours: 3, text: '(UTC+03:00) Kaliningrad, Minsk' ,
'Iran Standard Time' - (offsetMinutes: 210, offsetHours: 3.5, text: '(UTC+03:30) Tehran' ,
'Mauritius Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Port Louis' ,
'Georgian Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Tbilisi')
'Caucasus Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Yerevan' ,
'Arabian Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Abu Dhabi, Muscat')
'Azerbaijan Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Baku' ,
'Russian Standard Time' - (offsetMinutes: 240, offsetHours: 4, text: '(UTC+04:00) Moscow, St. Petersburg, Volgograd' ,
'Afghanistan Standard Time' - (offsetMinutes: 270, offsetHours: 4.5, text: '(UTC+04:30) Kabul')
'Pakistan Standard Time' - (offsetMinutes: 300, offsetHours: 5, text: '(UTC+05:00) Islamabad, Karachi' ,
'West Asia Standard Time' - (offsetMinutes: 300, offsetHours: 5, text: '(UTC+05:00) Ashgabat, Tashkent')
'India Standard Time' - (offsetMinutes: 330, offsetHours: 5.5, text: '(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi')
'Sri Lanka Standard Time' - (offsetMinutes: 330, offsetHours: 5.5, text: '(UTC+05:30) Sri Jayawardenepura')
'Nepal Standard Time' - (offsetMinutes: 345, offsetHours: 5.75, text: '(UTC+05:45) Kathmandu')
'Central Asia Standard Time' - (offsetMinutes: 360, offsetHours: 6, text: '(UTC+06:00) Astana')
'Bangladesh Standard Time' - (offsetMinutes: 360, offsetHours: 6, text: '(UTC+06:00) Dhaka' ,
'Ekaterinburg Standard Time' - (offsetMinutes: 360, offsetHours: 6, text: '(UTC+06:00) Ekaterinburg' ,
'Myanmar Standard Time' - (offsetMinutes: 390, offsetHours: 6.5, text: '(UTC+06:30) Yangon (Rangoon)')
'SE Asia Standard Time' - (offsetMinutes: 420, offsetHours: 7, text: '(UTC+07:00) Bangkok, Hanoi, Jakarta')
'N. Central Asia Standard Time' - (offsetMinutes: 420, offsetHours: 7, text: '(UTC+07:00) Novosibirsk' ,
'Ulaanbaatar Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Ulaanbaatar')
'China Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Beijing, Chongqing, Hong Kong')
'Singapore Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Kuala Lumpur, Singapore')
'North Asia Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Krasnoyarsk' ,
'Taipei Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Taipei')
'W. Australia Standard Time' - (offsetMinutes: 480, offsetHours: 8, text: '(UTC+08:00) Perth' ,
'Korea Standard Time' - (offsetMinutes: 540, offsetHours: 9, text: '(UTC+09:00) Seoul')
'North Asia East Standard Time' - (offsetMinutes: 540, offsetHours: 9, text: '(UTC+09:00) Irkutsk' ,
'Tokyo Standard Time' - (offsetMinutes: 540, offsetHours: 9, text: '(UTC+09:00) Osaka, Sapporo, Tokyo')
'AUS Central Standard Time' - (offsetMinutes: 570, offsetHours: 9.5, text: '(UTC+09:30) Darwin')
'Cen. Australia Standard Time' - (offsetMinutes: 570, offsetHours: 9.5, text: '(UTC+09:30) Adelaide' ,
'West Pacific Standard Time' - (offsetMinutes: 600, offsetHours: 10, text: '(UTC+10:00) Guam, Port Moresby')
'Tasmania Standard Time' - (offsetMinutes: 600, offsetHours: 10, text: '(UTC+10:00) Hobart' ,
'E. Australia Standard Time' - (offsetMinutes: 600, offsetHours: 10, text: '(UTC+10:00) Brisbane')
'AUS Eastern Standard Time' - (offsetMinutes: 600, offsetHours: 10, text: '(UTC+10:00) Canberra, Melbourne, Sydney' ,
'Yakutsk Standard Time' - (offsetMinutes: 600, offsetHours: 10, text: '(UTC+10:00) Yakutsk' ,
'Vladivostok Standard Time' - (offsetMinutes: 660, offsetHours: 11, text: '(UTC+11:00) Vladivostok' ,
'Central Pacific Standard Time' - (offsetMinutes: 660, offsetHours: 11, text: '(UTC+11:00) Solomon Is., New Caledonia')
'Magadan Standard Time' - (offsetMinutes: 720, offsetHours: 12, text: '(UTC+12:00) Magadan' ,
'Kamchatka Standard Time' - (offsetMinutes: 720, offsetHours: 12, text: '(UTC+12:00) Petropavlovsk-Kamchatsky - Old' ,
'Fiji Standard Time' - (offsetMinutes: 720, offsetHours: 12, text: '(UTC+12:00) Fiji' ,
'New Zealand Standard Time' - (offsetMinutes: 720, offsetHours: 12, text: '(UTC+12:00) Auckland, Wellington' ,
'UTC+12' - (offsetMinutes: 720, offsetHours: 12, text: '(UTC+12:00) Coordinated Universal Time+12')
'Tonga Standard Time' - (offsetMinutes: 780, offsetHours: 13, text: '(UTC+13:00) Nuku\'alofa')
'Samoa Standard Time' - (offsetMinutes: 780, offsetHours: 13, text: '(UTC+13:00) Samoa')
						 

Code example

Set the timeZone property.


$('#jqxScheduler').jqxScheduler({timeZone: 'UTC'});
						

Get the timeZone property.

var timeZone = $('#jqxScheduler').jqxScheduler('timeZone');
touchDayNameFormat String 'abbr'

Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'.

Code example

Set the touchDayNameFormat property.

$("#jqxScheduler").jqxScheduler({ touchDayNameFormat: 'abbr') });
						

Get the touchDayNameFormat property.

var touchDayNameFormat = $('#jqxScheduler').jqxScheduler('touchDayNameFormat');
toolBarRangeFormat String 'dd MMMM yyyy'

Sets or gets the toolbar's date format.

Code example

Set the toolBarRangeFormat property.


$('#jqxScheduler').jqxScheduler({toolBarRangeFormat: 'dd MM yyyy'});
						

Get the toolBarRangeFormat property.

var toolBarRangeFormat = $('#jqxScheduler').jqxScheduler('toolBarRangeFormat');
toolBarRangeFormatAbbr String 'dd MM yyyy'

Sets or gets the toolbar's date format when the Scheduler's width is not enough for displaying the full format.

Code example

Set the toolBarRangeFormatAbbr property.


$('#jqxScheduler').jqxScheduler({toolBarRangeFormatAbbr: 'dd MM yy'});
						

Get the toolBarRangeFormatAbbr property.

var toolBarRangeFormatAbbr = $('#jqxScheduler').jqxScheduler('toolBarRangeFormatAbbr');
toolbarHeight Number 54

Sets or gets the Scheduler toolbar's height.

Code example

Set the toolbarHeight property.


$('#jqxScheduler').jqxScheduler({toolbarHeight: 60});
						

Get the toolbarHeight property.

var toolbarHeight = $('#jqxScheduler').jqxScheduler('toolbarHeight');
views Array ['dayView', 'weekView', 'monthView']

Sets or gets the Scheduler's views. Each view in the Array can be String or Object. Strings are: 'dayView', 'weekView', 'monthView', 'timelineDayView', 'timelineWeekView', 'timelineMonthView', 'agendaView'. If it is an object it can have the following members:

  • appointmentColumnWidth - Number which defines the Appointment column width in the Agenda view.
  • appointmentHeight - Sets the minimum height of an appointment in All Day Row, Month View or Timeline Views. Default is automatically calculated.
  • appointmentsRenderMode - Sets the appointments rendering mode. Possible value: "exactTime". In the "exactTime" mode, appointments may render partially in the cells.
  • allDayRowHeight - Number which defines the all day row's height. Default is automatically calculated.
  • dayViewNavigation - Boolean which is taken into account in Month View. It defines whether clicking on month cell header navigates to Day View. Default is false.
  • days - Number which defines the number of days in the Agenda view. Default is 7.
  • dateColumnWidth - Number which defines the Date column width in the Agenda view.
  • monthRowAutoHeight - Boolean which defines whether row height in month view is automatic. Default is false.
  • rowHeight - Number which defines the rows height in the view. Default is null.
  • showWeekends - Boolean which defines whether weekens will be displayed. Default is true.
  • showWorkTime - Boolean which defines whether the work time is displayed in Day View, Week View, Timeline Day View and Timeline Week View. Default is true.
  • showWeekNumbers - Boolean which defines whether the week numbers are dispalyed in Month View. Default is false.
  • showTimeRangeStatus - Boolean which defines whether the time range status of appointments which have duration>= 1 day and are not all day appointments is displayed in Month View and Day/Week views all day area.
  • type - String which sets the view's type. Values: 'dayView', 'weekView', 'monthView', 'timelineDayView', 'timelineWeekView', 'timelineMonthView'.
  • timeRuler - Object which can have the following members:
    • width - Number which sets the width of the time ruler. Default is 60.
    • hidden - Sets whether the time ruler is displayed.
    • timeZones - Sets an Array of time zones. Example: [{ id: "UTC", text: "UTC" }, { id: "Pacific Standard Time", text: "PST" }].
    • text - Sets the text of the time ruler column.
    • scale - Sets the time ruler's scale. Values: 'hour', 'halfHour', 'quarterHour', 'tenMinutes', 'fiveMinutes'
    • scaleStartHour - Sets the scale's start hour.
    • scaleEndHour - Sets the scale's end hour.
    • formatString - Sets the Hours and Minutes format string. Example: "hh:mm".
    • position - Sets the time ruler's position. Possible values: 'left' or 'right'.
  • text - Sets the view's display text in the Scheduler's Toolbar. Default is automatically set and defined in Scheduler's localization.
  • timeSlotWidth - Number which defines the width of a time slot in Timeline views. The minimum value is 30.
  • timeColumnWidth - Number which defines the Time column width in the Agenda view.
  • weekViewNavigation - Boolean which is taken into account in Month View. It defines whether clicking on week number cell header navigates to Week View. Default is false.
  • workTime - Object which defines the Scheduler's work time. Example: { fromDayOfWeek: 1, toDayOfWeek: 5, fromHour: 7, toHour: 19 }

Code example

Set the views property.


$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
ready: function () {
},
appointmentDataFields:
{
	from: "start",
	to: "end",
	id: "id",
	description: "about",
	location: "address",
	subject: "name",
	style: "style",
	status: "status"
},
view: 'weekView',
views:
[
	{ type: "dayView", showWeekends: false, timeRuler: { hidden: false } },
	{ type: "weekView", workTime:
	{
		fromDayOfWeek: 1,
		toDayOfWeek: 5,
		fromHour: 7,
		toHour: 19
	}
	}
]
});
						

Get the views property.

var views = $('#jqxScheduler').jqxScheduler('views');
view Number/String

Sets or gets the Scheduler's view. Possible vales: 'dayView', 'weekView', 'monthView', 'timelineDayView', 'timelineWeekView' and 'timelineMonthView' or the view's Index in the views object.

Code example

Set the view property.


$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
ready: function () {
},
appointmentDataFields:
{
	from: "start",
	to: "end",
	id: "id",
	description: "about",
	location: "address",
	subject: "name",
	style: "style",
	status: "status"
},
view: 'weekView',
views:
[
	{ type: "dayView", showWeekends: false, timeRuler: { hidden: false } },
	{ type: "weekView", workTime:
	{
		fromDayOfWeek: 1,
		toDayOfWeek: 5,
		fromHour: 7,
		toHour: 19
	}
	}
]
});
						

Get the view property.

var view = $('#jqxScheduler').jqxScheduler('view');
width Number/String 800

Sets or gets the Scheduler's width.

Code example

Set the width property.


$("#scheduler").jqxScheduler({
date: new $.jqx.date(2016, 11, 23),
width: 850,
height: 600,
source: adapter,
ready: function () {
},
appointmentDataFields:
{
	from: "start",
	to: "end",
	id: "id",
	description: "about",
	location: "address",
	subject: "name",
	style: "style",
	status: "status"
},
view: 'weekView',
views:
[
	{ type: "dayView", showWeekends: false, timeRuler: { hidden: false } },
	{ type: "weekView", workTime:
	{
		fromDayOfWeek: 1,
		toDayOfWeek: 5,
		fromHour: 7,
		toHour: 19
	}
	}
]
});
						

Get the width property.

var width = $('#jqxScheduler').jqxScheduler('width');

Events

appointmentChange Event

This event is triggered when an appointment is changed. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Bind to the appointmentChange event by type: jqxScheduler.

$('#jqxScheduler').on('appointmentChange', function (event) { var args = event.args; var appointment = args.appointment; });
 
appointmentClick Event

This event is triggered when an appointment is clicked. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Bind to the appointmentClick event by type: jqxScheduler.

$('#jqxScheduler').on('appointmentClick', function (event) { var args = event.args; var appointment = args.appointment; });
 
appointmentDoubleClick Event

This event is triggered when an appointment is double clicked. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Bind to the appointmentDoubleClick event by type: jqxScheduler.

$('#jqxScheduler').on('appointmentDoubleClick', function (event) { var args = event.args; var appointment = args.appointment; });
 
appointmentDelete Event

This event is triggered when an appointment is deleted. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Bind to the appointmentDelete event by type: jqxScheduler.

$('#jqxScheduler').on('appointmentDelete', function (event) { var args = event.args; var appointment = args.appointment; });
 
appointmentAdd Event

This event is triggered when an appointment is added. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property.

Code example

Bind to the appointmentAdd event by type: jqxScheduler.

$('#jqxScheduler').on('appointmentAdd', function (event) { var args = event.args; var appointment = args.appointment; });
 
bindingComplete Event

This event is triggered when the binding is completed.

Code example

Bind to the bindingComplete event by type: jqxScheduler.

$('#jqxScheduler').on('bindingComplete', function (event) { });
 
cellClick Event

This event is triggered when a cell is clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object.

Code example

Bind to the cellClick event by type: jqxScheduler.

$('#jqxScheduler').on('cellClick', function (event) { var args = event.args; var cell = args.cell; var date = args.date; });
 
cellDoubleClick Event

This event is triggered when a cell is double clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object.

Code example

Bind to the cellDoubleClick event by type: jqxScheduler.

$('#jqxScheduler').on('cellDoubleClick', function (event) { var args = event.args; var cell = args.cell; var date = args.date;});
 
contextMenuOpen Event

This event is triggered when the context menu is opened. Event Arguments:

  • menu - jQuery Object which represents the jqxMenu.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.

Code example

Bind to the contextMenuOpen event by type: jqxScheduler.

$('#jqxScheduler').on('contextMenuOpen', function (event) { var args = event.args; var menu = args.menu; var appointment = args.appointment; });
 
contextMenuClose Event

This event is triggered when the context menu is closed. Event Arguments:

  • menu - jQuery Object which represents the jqxMenu.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.

Code example

Bind to the contextMenuClose event by type: jqxScheduler.

$('#jqxScheduler').on('contextMenuClose', function (event) { var args = event.args; var menu = args.menu; var appointment = args.appointment; });
 
contextMenuItemClick Event

This event is triggered when the context menu item is clicked. Event Arguments:

  • menu - jQuery Object which represents the jqxMenu.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.
  • item - the clicked menu item.

Code example

Bind to the contextMenuItemClick event by type: jqxScheduler.

$('#jqxScheduler').on('contextMenuItemClick', function (event) { var args = event.args; var menu = args.menu; var appointment = args.appointment; });
 
contextMenuCreate Event

This event is triggered when the context menu item is created. Event Arguments:

  • menu - jQuery Object which represents the jqxMenu.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.

Code example

Bind to the contextMenuCreate event by type: jqxScheduler.

$('#jqxScheduler').on('contextMenuCreate', function (event) { var args = event.args; var menu = args.menu; var appointment = args.appointment; });
 
dateChange Event

This event is triggered when the date is changed. This event has three arguments: date, from and to - jqxDate objects.

Code example

Bind to the dateChange event by type: jqxScheduler.

$('#jqxScheduler').on('dateChange', function (event) { var args = event.args; var date = args.date; var from = args.from; var to = args.to; });
 
editRecurrenceDialogOpen Event

This event is triggered when the recurrence dialog is opened. Event Arguments:

  • dialog - jQuery Object which represents the jqxWindow.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.

Code example

Bind to the editRecurrenceDialogOpen event by type: jqxScheduler.

$('#jqxScheduler').on('editRecurrenceDialogOpen', function (event) { var args = event.args; var dialog = args.dialog; var appointment = args.appointment; });
 
editRecurrenceDialogClose Event

This event is triggered when the recurrence dialog is closed. Event Arguments:

  • dialog - jQuery Object which represents the jqxWindow.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.

Code example

Bind to the editRecurrenceDialogClose event by type: jqxScheduler.

$('#jqxScheduler').on('editRecurrenceDialogClose', function (event) { var args = event.args; var dialog = args.dialog; var appointment = args.appointment; });
 
editDialogCreate Event

This event is triggered when the edit dialog is created. Event Arguments:

  • dialog - jQuery Object which represents the jqxWindow.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.
  • fields - Object with the following members:
    • subject - Subject input field.
    • subjectLabel - Subject label.
    • subjectContainer - Input and label HTML div container element.
    • location - Location input field.
    • locationLabel - Location label.
    • locationContainer - Input and label HTML div container element.
    • from - From datetime input field.
    • fromLabel - From label.
    • fromContainer - Input and label HTML div container element.
    • to - To Datetimeinput field.
    • toLabel - To label.
    • toContainer - Input and label HTML div container element.
    • allDay - AllDay checkbox field.
    • allDayLabel - AllDay label.
    • allDayContainer - Checkbox and label HTML div container element.
    • timeZone - Timezone DropDownList field.
    • timeZoneLabel - TimeZone label.
    • timeZoneContainer - DropDownList and label HTML div container element.
    • description - Description input field.
    • descriptionLabel - Description label.
    • descriptionContainer - Input and label HTML div container element.
    • color - Color DropDownList field.
    • colorLabel - Subject label.
    • colorContainer - DropDownList and label container element.
    • status - Status DropDownList field.
    • statusLabel - Status label.
    • statustContainer - DropDownList and label container element.
    • resource - Resource DropDownList field.
    • resourceLabel - Resource label.
    • resourceContainer - DropDownList and label container element.
    • buttonsField - buttons HTML div container HTML Element.
    • saveButton - Save button.
    • deleteButton - Delete button.
    • cancelButton - Cancel button.
    • daily.repeatDayInterval - NumberInput for daily repeat pattern.
    • daily.repeatDayLabel - Label HTML Element.
    • daily.panel - Daily repeat pattern HTML div container element.
    • weekly.repeatWeekInterval - NumberInput for weekly repeat pattern.
    • weekly.repeatWeekIntervalLabel - Label element.
    • weekly.repeatDaysLabel - Label element.
    • weekly.repeatDays - Array of Checkboxes.
    • weekly.panel - Weekly repeat pattern HTML div container element.
    • monthly.repeatMonth - NumberInput for monthly repeat pattern.
    • monthly.repeatMonthLabel - Label element.
    • monthly.repeatMonthDay - NumberInput for the month day in the pattern.
    • monthly.repeatMonthDayBool - RadioButton element.
    • monthly.repeatMonthDayLabel - Label element.
    • monthly.repeatDayOfWeekBool - RadioButton element.
    • monthly.repeatDayOfWeek - DropDownList element.
    • monthly.repeatDayOfWeekLabel - Label element.
    • monthly.repeatDayOfWeekType - DropDownList element.
    • monthly.panel - Monthly repeat pattern HTML div container element.
    • yearly.repeatYear - NumberInput for yearly repeat pattern.
    • yearly.repeatYearLabel - Label element.
    • yearly.repeatYearBool - RadioButton element.
    • yearly.repeatYearBoolLabel - Label element.
    • yearly.repeatYearMonth - DropDownList element.
    • yearly.repeatYearDay - NumberInput element.
    • yearly.repeatDayOfWeekBool - RadioButton element.
    • yearly.repeatDayOfWeekType - DropDownList element.
    • yearly.repeatDayOfWeekLabel - Label element.
    • yearly.repeatDayOfWeekMonth - DropDownList element.
    • yearly.panel - Yearly repeat pattern HTML div container element.
    • resetExceptions - Checkbox element.
    • resetExceptionsLabel - Label element.
    • resetExceptionsContainer - Checkbox and Label container element.
    • repeat - DropDownList element.
    • repeatLabel - Label element.
    • repeatContainer - DropDownList and Label container element.
    • repeatPanel - HTML div container element for repeat patterns.
    • repeatEndPanelContainer - HTML div container element for the repeat pattern's end.
    • repeatEndPanel.repeatEndNever - RadioButton element.
    • repeatEndPanel.repeatEndNeverLabel - Label element.
    • repeatEndPanel.repeatEndAfter - RadioButton element.
    • repeatEndPanel.repeatEndAfterValue - NumberInput element.
    • repeatEndPanel.repeatEndAfterLabel - Label element.
    • repeatEndPanel.repeatEndOn - RadioButton element.
    • repeatEndPanel.repeatEndOnValue - DateTimeInput element.
    • repeatEndPanel.repeatEndOnLabel - Label element.

Code example

Bind to the editDialogCreate event by type: jqxScheduler.

$('#jqxScheduler').on('editDialogCreate', function (event) { var args = event.args; var dialog = args.dialog; var fields = args.fields; var appointment = args.appointment; });
 
editDialogOpen Event

This event is triggered when the edit dialog is opened. Event Arguments:

  • dialog - jQuery Object which represents the jqxWindow.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.
  • fields - Object with the following members:
    • subject - Subject input field.
    • subjectLabel - Subject label.
    • subjectContainer - Input and label HTML div container element.
    • location - Location input field.
    • locationLabel - Location label.
    • locationContainer - Input and label HTML div container element.
    • from - From datetime input field.
    • fromLabel - From label.
    • fromContainer - Input and label HTML div container element.
    • to - To Datetimeinput field.
    • toLabel - To label.
    • toContainer - Input and label HTML div container element.
    • allDay - AllDay checkbox field.
    • allDayLabel - AllDay label.
    • allDayContainer - Checkbox and label HTML div container element.
    • timeZone - Timezone DropDownList field.
    • timeZoneLabel - TimeZone label.
    • timeZoneContainer - DropDownList and label HTML div container element.
    • description - Description input field.
    • descriptionLabel - Description label.
    • descriptionContainer - Input and label HTML div container element.
    • color - Color DropDownList field.
    • colorLabel - Subject label.
    • colorContainer - DropDownList and label container element.
    • status - Status DropDownList field.
    • statusLabel - Status label.
    • statustContainer - DropDownList and label container element.
    • resource - Resource DropDownList field.
    • resourceLabel - Resource label.
    • resourceContainer - DropDownList and label container element.
    • buttonsField - buttons HTML div container HTML Element.
    • saveButton - Save button.
    • deleteButton - Delete button.
    • cancelButton - Cancel button.
    • daily.repeatDayInterval - NumberInput for daily repeat pattern.
    • daily.repeatDayLabel - Label HTML Element.
    • daily.panel - Daily repeat pattern HTML div container element.
    • weekly.repeatWeekInterval - NumberInput for weekly repeat pattern.
    • weekly.repeatWeekIntervalLabel - Label element.
    • weekly.repeatDaysLabel - Label element.
    • weekly.repeatDays - Array of Checkboxes.
    • weekly.panel - Weekly repeat pattern HTML div container element.
    • monthly.repeatMonth - NumberInput for monthly repeat pattern.
    • monthly.repeatMonthLabel - Label element.
    • monthly.repeatMonthDay - NumberInput for the month day in the pattern.
    • monthly.repeatMonthDayBool - RadioButton element.
    • monthly.repeatMonthDayLabel - Label element.
    • monthly.repeatDayOfWeekBool - RadioButton element.
    • monthly.repeatDayOfWeek - DropDownList element.
    • monthly.repeatDayOfWeekLabel - Label element.
    • monthly.repeatDayOfWeekType - DropDownList element.
    • monthly.panel - Monthly repeat pattern HTML div container element.
    • yearly.repeatYear - NumberInput for yearly repeat pattern.
    • yearly.repeatYearLabel - Label element.
    • yearly.repeatYearBool - RadioButton element.
    • yearly.repeatYearBoolLabel - Label element.
    • yearly.repeatYearMonth - DropDownList element.
    • yearly.repeatYearDay - NumberInput element.
    • yearly.repeatDayOfWeekBool - RadioButton element.
    • yearly.repeatDayOfWeekType - DropDownList element.
    • yearly.repeatDayOfWeekLabel - Label element.
    • yearly.repeatDayOfWeekMonth - DropDownList element.
    • yearly.panel - Yearly repeat pattern HTML div container element.
    • resetExceptions - Checkbox element.
    • resetExceptionsLabel - Label element.
    • resetExceptionsContainer - Checkbox and Label container element.
    • repeat - DropDownList element.
    • repeatLabel - Label element.
    • repeatContainer - DropDownList and Label container element.
    • repeatPanel - HTML div container element for repeat patterns.
    • repeatEndPanelContainer - HTML div container element for the repeat pattern's end.
    • repeatEndPanel.repeatEndNever - RadioButton element.
    • repeatEndPanel.repeatEndNeverLabel - Label element.
    • repeatEndPanel.repeatEndAfter - RadioButton element.
    • repeatEndPanel.repeatEndAfterValue - NumberInput element.
    • repeatEndPanel.repeatEndAfterLabel - Label element.
    • repeatEndPanel.repeatEndOn - RadioButton element.
    • repeatEndPanel.repeatEndOnValue - DateTimeInput element.
    • repeatEndPanel.repeatEndOnLabel - Label element.

Code example

Bind to the editDialogOpen event by type: jqxScheduler.

$('#jqxScheduler').on('editDialogOpen', function (event) { var args = event.args; var dialog = args.dialog; var fields = args.fields; var appointment = args.appointment; });
 
editDialogClose Event

This event is triggered when the edit dialog is closed. Event Arguments:

  • dialog - jQuery Object which represents the jqxWindow.
  • appointment - Object which has the appointmentDataFields. See appointmentDataFields property. The value is null when the menu is opened from cells selection.
  • fields - Object with the following members:
    • subject - Subject input field.
    • subjectLabel - Subject label.
    • subjectContainer - Input and label HTML div container element.
    • location - Location input field.
    • locationLabel - Location label.
    • locationContainer - Input and label HTML div container element.
    • from - From datetime input field.
    • fromLabel - From label.
    • fromContainer - Input and label HTML div container element.
    • to - To Datetimeinput field.
    • toLabel - To label.
    • toContainer - Input and label HTML div container element.
    • allDay - AllDay checkbox field.
    • allDayLabel - AllDay label.
    • allDayContainer - Checkbox and label HTML div container element.
    • timeZone - Timezone DropDownList field.
    • timeZoneLabel - TimeZone label.
    • timeZoneContainer - DropDownList and label HTML div container element.
    • description - Description input field.
    • descriptionLabel - Description label.
    • descriptionContainer - Input and label HTML div container element.
    • color - Color DropDownList field.
    • colorLabel - Subject label.
    • colorContainer - DropDownList and label container element.
    • status - Status DropDownList field.
    • statusLabel - Status label.
    • statustContainer - DropDownList and label container element.
    • resource - Resource DropDownList field.
    • resourceLabel - Resource label.
    • resourceContainer - DropDownList and label container element.
    • buttonsField - buttons HTML div container HTML Element.
    • saveButton - Save button.
    • deleteButton - Delete button.
    • cancelButton - Cancel button.
    • daily.repeatDayInterval - NumberInput for daily repeat pattern.
    • daily.repeatDayLabel - Label HTML Element.
    • daily.panel - Daily repeat pattern HTML div container element.
    • weekly.repeatWeekInterval - NumberInput for weekly repeat pattern.
    • weekly.repeatWeekIntervalLabel - Label element.
    • weekly.repeatDaysLabel - Label element.
    • weekly.repeatDays - Array of Checkboxes.
    • weekly.panel - Weekly repeat pattern HTML div container element.
    • monthly.repeatMonth - NumberInput for monthly repeat pattern.
    • monthly.repeatMonthLabel - Label element.
    • monthly.repeatMonthDay - NumberInput for the month day in the pattern.
    • monthly.repeatMonthDayBool - RadioButton element.
    • monthly.repeatMonthDayLabel - Label element.
    • monthly.repeatDayOfWeekBool - RadioButton element.
    • monthly.repeatDayOfWeek - DropDownList element.
    • monthly.repeatDayOfWeekLabel - Label element.
    • monthly.repeatDayOfWeekType - DropDownList element.
    • monthly.panel - Monthly repeat pattern HTML div container element.
    • yearly.repeatYear - NumberInput for yearly repeat pattern.
    • yearly.repeatYearLabel - Label element.
    • yearly.repeatYearBool - RadioButton element.
    • yearly.repeatYearBoolLabel - Label element.
    • yearly.repeatYearMonth - DropDownList element.
    • yearly.repeatYearDay - NumberInput element.
    • yearly.repeatDayOfWeekBool - RadioButton element.
    • yearly.repeatDayOfWeekType - DropDownList element.
    • yearly.repeatDayOfWeekLabel - Label element.
    • yearly.repeatDayOfWeekMonth - DropDownList element.
    • yearly.panel - Yearly repeat pattern HTML div container element.
    • resetExceptions - Checkbox element.
    • resetExceptionsLabel - Label element.
    • resetExceptionsContainer - Checkbox and Label container element.
    • repeat - DropDownList element.
    • repeatLabel - Label element.
    • repeatContainer - DropDownList and Label container element.
    • repeatPanel - HTML div container element for repeat patterns.
    • repeatEndPanelContainer - HTML div container element for the repeat pattern's end.
    • repeatEndPanel.repeatEndNever - RadioButton element.
    • repeatEndPanel.repeatEndNeverLabel - Label element.
    • repeatEndPanel.repeatEndAfter - RadioButton element.
    • repeatEndPanel.repeatEndAfterValue - NumberInput element.
    • repeatEndPanel.repeatEndAfterLabel - Label element.
    • repeatEndPanel.repeatEndOn - RadioButton element.
    • repeatEndPanel.repeatEndOnValue - DateTimeInput element.
    • repeatEndPanel.repeatEndOnLabel - Label element.

Code example

Bind to the editDialogClose event by type: jqxScheduler.

$('#jqxScheduler').on('editDialogClose', function (event) { var args = event.args; var dialog = args.dialog; var fields = args.fields; var appointment = args.appointment; });
 
viewChange Event

This event is triggered when the view type is changed. This event has five arguments: date, from and to - jqxDate objects, oldViewType and newViewType - strings.

Code example

Bind to the viewChange event by type: jqxScheduler.

$('#jqxScheduler').on('viewChange', function (event) { var args = event.args; var date = args.date; var from = args.from; var to = args.to; var oldViewType = args.oldViewType; var newViewType = args.newViewType });
 

Methods

addAppointment Method

Adds a new appointment.

Parameter Type Description
item Object
Return Value
None

Code examples

Invoke the addAppointment method.


// @param appointment - Object which has the appointmentDataFields. See appointmentDataFields property. 
$('#jqxScheduler').jqxScheduler('addAppointment', appointment);
 
beginAppointmentsUpdate Method

Begins an update process and stops the Scheduler's rendering and appointments rendering.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the beginAppointmentsUpdate method.


$('#jqxScheduler').jqxScheduler('beginAppointmentsUpdate');
 
clearAppointmentsSelection Method

Clears the appointments selection.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the clearAppointmentsSelection method.


$('#jqxScheduler').jqxScheduler('clearAppointmentsSelection');
 
clearSelection Method

Clears cells selection.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the clearSelection method.


$('#jqxScheduler').jqxScheduler('clearSelection');
 
closeMenu Method

Closes the context menu.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the closeMenu method.


$('#jqxScheduler').jqxScheduler('closeMenu');
 
closeDialog Method

Closes the edit dialog.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the closeDialog method.


$('#jqxScheduler').jqxScheduler('closeDialog');
 
deleteAppointment Method

Deletes an appointment.

Parameter Type Description
appointmenId String
Return Value
None

Code examples

Invoke the deleteAppointment method.


// @param appointmentId - appointment's Id. 
$('#jqxScheduler').jqxScheduler('deleteAppointment', appointmentId);
 
destroy Method

Destroys the Scheduler and removes it from the DOM.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the destroy method.

 
$('#jqxScheduler').jqxScheduler('destroy');
 
endAppointmentsUpdate Method

Ends the update process and resumes the Scheduler's rendering. The method works together with the beginAppointmentsUpdate.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the endAppointmentsUpdate method.

 
$('#jqxScheduler').jqxScheduler('endAppointmentsUpdate');
 
ensureAppointmentVisible Method

Scrolls to an appointment if it is out of the visible area.

Parameter Type Description
id String
Return Value
None

Code examples

Invoke the ensureAppointmentVisible method.

 
// @param appointmentId - appointment's Id. 
$('#jqxScheduler').jqxScheduler('ensureAppointmentVisible', appointmentId);
 
ensureVisible Method

Scrolls to a Date.

Parameter Type Description
item Object
resourceId String
Return Value
None

Code examples

Invoke the ensureVisible method.

 
// @param jqxDate - jqxDate object or JavaScript Date object.
// @param resourceId - Id of a resource. Pass null when there are no resources or resources orientation is set to "none" or orientation is not set. The resourceId param ensures that the Scheduler will scroll to the Date in a given resource when the resources orientation is "horizontal" or "vertical". 
$('#jqxScheduler').jqxScheduler('ensureVisible', jqxDate, resourceId);
 
exportData Method

Exports jqxScheduler's data to ICS, Excel, HTML, XML, JSON, CSV or TSV. See also the exportSettings property

Parameter Type Description
format String
Return Value
None

Code example

Invoke the exportData method.

$("#jqxScheduler").jqxScheduler('exportData','xls');

Export to Excel works with the ExcelML format. ExcelML is XML-based file format. It complies to the Microsoft XMLSS specification and is supported in Microsoft Office 2003 and later.
* When you open export to Excel, you may receive the following message: "The file you are trying to open, 'file_name.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening this file. Do you want to open the file now?"
The reason of this warning message is explained in details in the following post: excel-2007-extension-warning.aspx
focus Method

Focuses the Scheduler.

Parameter Type Description
None
Return Value
None

Code examples

Invoke the focus method.

 
$('#jqxScheduler').jqxScheduler('focus');
 
getAppointmentProperty Method

Gets the value of an Appointment property.

Parameter Type Description
appointmentId String
name String
Return Value
None

Code examples

Invoke the getAppointmentProperty method.

 
// @param appointmentId - appointment's Id.
// @param propertyName - property's name. See appointmentDateFields property for the list of appointment properties.
var propertyValue = $('#jqxScheduler').jqxScheduler('getAppointmentProperty', appointmentId, propertyName);
 
getSelection Method

Gets the cells selection. Returns an object with the following members:

  • from - jqxDate which represents the selection's start.
  • to - jqxDate which represents the selection's end.
  • resourceId - selection's resource Id if resources are enabled.

Parameter Type Description
None
Return Value
Object

Code examples

Invoke the getSelection method.

 
var selection = $('#jqxScheduler').jqxScheduler('getSelection');
 
getAppointments Method

Gets the appointments loaded in jqxScheduler. The return value is an Array of Objects. Each Object has the appointmentDataFields. See appointmentDataFields property.

Parameter Type Description
None
Return Value
Array

Code examples

Invoke the getAppointments method.

 
var appointments = $('#jqxScheduler').jqxScheduler('getAppointments');
 
getDataAppointments Method

Gets the appointments loaded in jqxScheduler. The return value is an Array of Objects. Each Object has the fields defined in the dataAdapter's source object.

Parameter Type Description
None
Return Value
Array

Code examples

Invoke the getDataAppointments method.

 
var appointments = $('#jqxScheduler').jqxScheduler('getDataAppointments');
 
hideAppointmentsByResource Method

Hides appointments by given resourceId.

Parameter Type Description
resourcesId String
Return Value
None

Code examples

Invoke the hideAppointmentsByResource method.

 
// @param resourceId - resourceId.
$('#jqxScheduler').jqxScheduler('hideAppointmentsByResource', resourceId);
 
openMenu Method

Opens the context menu.

Parameter Type Description
left Number
top Number
Return Value
None

Code examples

Invoke the openMenu method.

 
// @param left - left position.
// @param top - top position.				
$('#jqxScheduler').jqxScheduler('openMenu', 50, 100);
 
openDialog Method

Opens the edit dialog.

Parameter Type Description
left Number
top Number
Return Value
None

Code examples

Invoke the openDialog method.

 
// @param left - left position.
// @param top - top position.			
$('#jqxScheduler').jqxScheduler('openDialog', 50, 100);
 
selectAppointment Method

Selects an appointment.

Parameter Type Description
appointmentId String
Return Value
None

Code examples

Invoke the selectAppointment method.

 
// @param appointmentId - appointment's Id.			
$('#jqxScheduler').jqxScheduler('selectAppointment', appointmentId);
 
setAppointmentProperty Method

Sets the value of an appointment's property.

Parameter Type Description
appointmentId String
name String
value Object
Return Value
None

Code examples

Invoke the setAppointmentProperty method.

 
// @param appointmentId - appointment's Id.			
// @param propertyName - property's name. See appointmentDateFields property for the list of appointment properties.
// @param value - property's new value.	
$('#jqxScheduler').jqxScheduler('setAppointmentProperty', appointmentId, propertyName, value);
 
selectCell Method

Selects a cell.

Parameter Type Description
date Date
allday Boolean
resourceId String
Return Value
None

Code examples

Invoke the selectCell method.

 
// @param date - jqxDate object or JavaScript date.		
// @param allDay - Boolean value which specifies whether the cell to be selected is from the all day area.
// @param resourceId - resource's Id when resources are enabled.	
$('#jqxScheduler').jqxScheduler('selectCell', date, allDay, resourceId);
 
showAppointmentsByResource Method

Shows appointments by given resourceId.

Parameter Type Description
resourceId String
Return Value
None

Code examples

Invoke the showAppointmentsByResource method.

 
// @param resourceId - resourceId.
$('#jqxScheduler').jqxScheduler('showAppointmentsByResource', resourceId);
 
scrollWidth Method

Returns the scrollbable width.

Parameter Type Description
None
Return Value
Number

Code examples

Invoke the scrollWidth method.

 
var width = $('#jqxScheduler').jqxScheduler('scrollWidth');
 
scrollHeight Method

Returns the scrollbable height.

Parameter Type Description
None
Return Value
Number

Code examples

Invoke the scrollHeight method.

 
var height = $('#jqxScheduler').jqxScheduler('scrollHeight');
 
scrollLeft Method

Scrolls horizontally to a given position.

Parameter Type Description
left Number
Return Value
None

Code examples

Invoke the scrollLeft method.

 
// @param left - horizontal scrollbar's value.
$('#jqxScheduler').jqxScheduler('scrollLeft', 100);
 
scrollTop Method

Scrolls vertically to a given position.

Parameter Type Description
top Number
Return Value
None

Code examples

Invoke the scrollTop method.

 
// @param top - vertical scrollbar's value.
$('#jqxScheduler').jqxScheduler('scrollTop', 100);
 

AltStyle によって変換されたページ (->オリジナル) /