Name | Parameters | Return Type | Description |
|---|
get_activeModel() | None |
Telerik.Web.UI. ISchedulerModel |
Gets the model that represents the current view. |
get_allowDelete()
|
None |
Boolean
|
Gets a value indicating whether appointments can be deleted.
|
set_allowDelete()
|
Boolean
|
None
| Sets a value indicating whether appointments can be deleted.
|
get_allowEdit()
|
None
|
Boolean
|
Gets a value indicating whether appointments can be edited.
|
set_allowEdit()
|
Boolean
|
None
|
Sets a value indicating whether appointments can be edited.
|
get_allowInsert()
|
None
|
Boolean
|
Gets a value indicating whether appointments can be inserted.
|
set_allowInsert()
|
Boolean
|
None
|
Sets a value indicating whether appointments can be inserted.
|
get_appointments()
| None |
Telerik.Web.UI. SchedulerAppointmentCollection | Gets a collection of all loaded appointments. |
get_attributes()
| None |
Telerik.Web.UI.
SchedulerAttributeCollection | Gets a collection of all attributes defined. |
get_currentAppointment()
| None | Telerik.Web.UI. SchedulerAppointment | Gets the currently edited appointment. |
get_displayDeleteConfirmation()
|
None
|
Boolean
|
Gets a value indicating whether a confirmation dialog is displayed before deleting appointments.
|
set_displayDeleteConfirmation()
|
Boolean
|
None
|
Sets a value indicating whether a confirmation dialog is displayed before deleting appointments.
|
get_displayRecurrenceActionDialogOnMove()
| None | Boolean | Gets a value indicating whether a confirmation dialog is displayed before moving recurrent appointments. |
set_displayRecurrenceActionDialogOnMove()
| Boolean | None | Sets a value indicating whether a confirmation dialog is displayed before moving recurrent appointments. |
get_firstDayStart()
| None | Date | Gets the start date of the current view. In Day View, this is the currently selected day. |
get_minutesPerRow()
| None | Number | Gets the number of minutes a single row represents. Only applicable in Day and Week View. |
get_readOnly()
| None | Boolean | Gets a value indicating whether appointments can be modified. |
set_readOnly()
| Boolean | None | Sets a value indicating whether appointments can be modified. |
get_resources()
| None | Telerik.Web.UI. SchedulerResourceCollection |
Gets all resources of all resource types defined for RadScheduler.
|
get_resourceTypes()
| None | Telerik.Web.UI. ResourceTypeCollection | Gets all resource types defined for RadScheduler. CopyJavaScript function clientFormCreated(scheduler, args)
{
var mode = args.get_mode();
if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit)
{
scheduler.get_resourceTypes().forEach(function (type)
{
alert(type.get_name());
});
}
}
|
get_groupBy()
| None | String |
Gets all the resources upon which a group by is made. When grouping by date and resources, the returned
String is in the following format "Date,[ResourceName_1]".
CopyJavaScript function pageLoad()
{
var scheduler = $find('<%=RadScheduler1.ClientID %>');
var groupedBy = scheduler.get_groupBy();
if (groupedBy != null)
{
alert(groupedBy);
}
}
CopyASP.NET <telerik:RadScheduler runat="server" ID="RadScheduler1"
GroupBy="Date, User" GroupingDirection="Horizontal">
</telerik:RadScheduler> |
get_selectedDate()
| None | Date | Gets the currently selected date. |
set_selectedDate()
| Date | None |
Sets the currently selected date.
Note |
|---|
This property is valid only when RadScheduler is bound to Web Service. |
CopyJavaScript function pageLoad()
{
var scheduler = $find('<%=RadScheduler1.ClientID %>');
if (!scheduler.get_webServiceSettings().get_isEmpty())
{
scheduler.set_selectedDate(new Date());
}
else
{
alert("RadScheduler is not bound to Web Service!");
}
}
|
get_selectedView()
| None |
Telerik.Web.UI.
SchedulerViewType Enum Note |
|---|
SchedulerViewType: { DayView: 0, WeekView: 1, MonthView: 2, ResourceView: 3, TimelineView: 4, MultiDayView: 5 } |
|
Gets the type of the currently selected View.
CopyJavaScript function pageLoad()
{
var scheduler = $find('<%=RadScheduler1.ClientID %>');
if (scheduler.get_selectedView() == Telerik.Web.UI.SchedulerViewType.DayView)
{
alert("The selected view is DayView");
}
}
|
set_selectedView()
|
SchedulerViewType Enum
| None | Sets the currently selected view type. Note |
|---|
This property is valid only when RadScheduler is bound to Web Service. |
CopyJavaScript function pageLoad()
{
var scheduler = $find('<%=RadScheduler1.ClientID %>');
if (!scheduler.get_webServiceSettings().get_isEmpty())
{
var currentView = scheduler.get_selectedView();
if (currentView != Telerik.Web.UI.SchedulerViewType.TimelineView)
{
alert("The Scheduler's currently selected view will be" +
"automatically changed to TimelineView after closing the dialog!");
scheduler.set_selectedView(Telerik.Web.UI.SchedulerViewType.TimelineView);
}
}
else
{
alert("RadScheduler is not bound to Web Service!");
}
}
|
get_showFullTime()
| None | Boolean | Gets a value indicating whether the Scheduler is displayed in 24-hour View. |
set_showFullTime()
| Boolean | None | Sets a value indicating whether the Scheduler is displayed in 24-hour View. Note |
|---|
This property is valid only when RadScheduler is bound to Web Service. |
|
get_advancedFormSettings() | None | Object | Gets the advanced form's settings: enabled, modal, and z-index. |
get_appointmentContextMenuIDs() | None | Array | Gets the IDs of context menus defined for appointment. |
get_appointmentContextMenus() | None | Array | Gets the objects of context menus defined for appointment. |
get_timeSlotContextMenuIDs() | None | Array | Gets the IDs of context menus defined for TimeSlot. |
get_timeSlotContextMenus() | None | Array | Gets the objects of context menus defined for TimeSlot. |
get_appointmentStyleMode() | None | Telerik.Web.UI. AppointmentStyleMode Enum Note |
|---|
AppointmentStyleMode: { Auto: 0, Simple: 1, Default: 2 } |
| Gets the AppointmentStyleMode of RadScheduler. |
scheduler.set_appointmentStyleMode() | AppointmentStyleMode | None | Sets un AppointmentStyleMode of RadScheduler. |
get_clientState() | None | String | Gets the client state of RadScheduler. |
get_clientStateFieldID() | None | String | Gets the ID of the field containing the client state of RadScheduler. |
get_contentElement() | None | Object | Gets the DOM element of the content area of RadScheduler. |
get_customAttributeNames() | None | Array | Gets the names of custom attributes defined for RadScheduelr, if any. |
get_dayViewSettings() | None | Object | Gets an object contining the day-start time and day-end time. |
get_element() | None | Object | Gets the DOM element of RadScheduler. |
get_firstDayOfWeek() | None | Telerik.Web.UI. DayOfWeek Enum Note |
|---|
DayOfWeek: { Sunday: 0, Monday: 1, Tuesday: 2 Wednesday: 3 Thursday: 4 Friday: 5 Saturday: 6 } |
| Gets first day of week defined for RadScheduler. |
get_height() | None | String | Gets the height of RadScheduler. |
get_hoursPanelTimeFormat() | None | Stirng | Gets the time format of the hours panel. |
get_id() | None | String | Gets the id set for RadScheduler. |
get_lastDayOfWeek() | None | Telerik.Web.UI. DayOfWeek Enum Note |
|---|
DayOfWeek: { Sunday: 0, Monday: 1, Tuesday: 2 Wednesday: 3 Thursday: 4 Friday: 5 Saturday: 6 } |
| Gets last day of week defined for RadScheduler. |
get_localization() | None | Object | Gets an object conaining all localization rules defined for RadScheduler. |
get_monthViewSettings() | None | Array | Gets an object containing MonthView settings, if defined. |
scheduler.get_multiDayViewSettings() | None | Object | Gets an object containing day start-time and day-end time. |
get_timelineViewSettings() | None | Array | Gets an object containing TimelineView settings, if defined. |
get_numberOfHoveredRows() | None | Number | Gets the number of hovered rows. |
set_numberOfHoveredRows() | Number | None | Sets the number of hovered rows. |
get_rowHeight() | None | String | Gets the height of rows. |
get_scrollTop() | None | Number | Gets the vertical scroll position of the content area of RadScheduler. |
get_shouldPostbackOnAppointmentContextMenuItemClick() | None | Boolean | Returns true if RadScheduler post-backs on AppointmentContextMenu item click, false otherwise. |
set_shouldPostbackOnAppointmentContextMenuItemClick() | Boolean | None | Sets a boolean whether a postback should occur when an item from the Appointment context menu is clicked. |
get_shouldPostbackOnTimeSlotContextMenuItemClick() | None | Boolean | Returns true if RadScheduler postbacks on TimeSlotContextMenu item click, false otherwise. |
set_shouldPostbackOnTimeSlotContextMenuItemClick() | Boolean | None | Sets a boolean whether a postback should occur when an item from the TimeSlot context menu is clicked. |
get_shouldUseClientInlineInsertForm() | None | Boolean | Returns true if the inline form is opened when inserting an appointment, false otherwise. |
set_shouldUseClientInlineInsertForm() | Boolean | None | Sets a boolean wether a client inline form should be displayed on appointment insert. |
get_shouldUseClientInlineEditForm() | None | Boolean | Returns true if the inline form is opened when editing an appointment, false otherwise. |
set_shouldUseClientInlineEditForm() | Boolean | None | Sets a boolean whether an inline form should be displayed on appointment edit. |
get_showAllDayRow() | None | Boolean | Returns true if AllDayRow is visible, false otherwise. |
get_timeLabelRowSpan() | None | Number | Gets the row span of time label. Note |
|---|
Depends on NumberOfSlos property of RadScheduler in TimelineView.
|
|
get_validationGroup() | None | String | Get the validation group defined for RadScheduler. |
get_visible() | None | Boolean | Gets true if RadScheduler is visible, false otherwise. |
set_visible() | Boolean | None | Sets the visibility of RadScheduler. |
get_webServiceSettings() | None | Telerik.Web.UI. SchedulerWebServiceSettings | Gets an object of web service settings defined for RadScheduler. |
get_weekViewSettings() | None | Object | Gets an object of settings defined for WeekView. |