Interface IScheduler
The common RadzenScheduler<TItem> API injected as a cascading parameter to is views.
public interface IScheduler
Properties
AppointmentMove
Gets or sets the appointment move event callback.
EventCallback<SchedulerAppointmentMoveEventArgs> AppointmentMove { get; set; }
Property Value
- EventCallback<SchedulerAppointmentMoveEventArgs>
The appointment move event callback.
Culture
Gets or sets the culture.
CultureInfo Culture { get; set; }
Property Value
- CultureInfo
The culture.
CurrentDate
Gets or sets the current date.
DateTime CurrentDate { get; set; }
Property Value
- DateTime
The current date.
Height
Gets the height.
double Height { get; }
Property Value
- double
The height.
Methods
AddView(ISchedulerView)
Adds a view. Must be called when a ISchedulerView is initialized.
Task AddView(ISchedulerView view)
Parameters
view
ISchedulerViewThe view to add.
Returns
GetAppointmentAttributes(AppointmentData)
Gets the appointment HTML attributes.
IDictionary<string, object> GetAppointmentAttributes(AppointmentData item)
Parameters
item
AppointmentDataThe appointment.
Returns
- IDictionary<string, object>
A dictionary containing the HTML attributes for the specified appointment.
GetAppointmentsInRange(DateTime, DateTime)
Gets the appointments in the specified range.
IEnumerable<AppointmentData> GetAppointmentsInRange(DateTime start, DateTime end)
Parameters
Returns
- IEnumerable<AppointmentData>
A collection of appointments within the specified range.
GetSlotAttributes(DateTime, DateTime)
Gets the slot HTML attributes.
IDictionary<string, object> GetSlotAttributes(DateTime start, DateTime end)
Parameters
Returns
- IDictionary<string, object>
A dictionary containing the HTML attributes for the specified slot.
HasAppointmentMoveDelegate()
Returns true if the scheduler has an AppointmentMove listener.
bool HasAppointmentMoveDelegate()
Returns
HasMouseEnterAppointmentDelegate()
Returns true if the scheduler has a mouse enter appointment listener.
bool HasMouseEnterAppointmentDelegate()
Returns
IsAppointmentInRange(AppointmentData, DateTime, DateTime)
Determines whether an appointment is within the specified range.
bool IsAppointmentInRange(AppointmentData item, DateTime start, DateTime end)
Parameters
item
AppointmentDataThe appointment to check.
start
DateTimeThe start of the range.
end
DateTimeThe end of the range.
Returns
- bool
true
if the appointment is within the specified range; otherwise,false
.
IsSelected(ISchedulerView)
Determines whether the specified view is selected.
bool IsSelected(ISchedulerView view)
Parameters
view
ISchedulerViewThe view.
Returns
- bool
true
if the specified view is selected; otherwise,false
.
MouseEnterAppointment(ElementReference, AppointmentData)
Notifies the scheduler that the user has moved the mouse over the specified appointment.
Task MouseEnterAppointment(ElementReference reference, AppointmentData data)
Parameters
reference
ElementReferencedata
AppointmentData
Returns
MouseLeaveAppointment(ElementReference, AppointmentData)
Notifies the scheduler that the user has moved the mouse out of the specified appointment.
Task MouseLeaveAppointment(ElementReference reference, AppointmentData data)
Parameters
reference
ElementReferencedata
AppointmentData
Returns
Reload()
Reloads this instance.
Task Reload()
Returns
RemoveView(ISchedulerView)
Removes a view. Must be called when a ISchedulerView is disposed.
void RemoveView(ISchedulerView view)
Parameters
view
ISchedulerViewThe view to remove.
RenderAppointment(AppointmentData)
Renders the appointment.
RenderFragment RenderAppointment(AppointmentData item)
Parameters
item
AppointmentDataThe item.
Returns
- RenderFragment
RenderFragment.
SelectAppointment(AppointmentData)
Selects the specified appointment.
Task SelectAppointment(AppointmentData data)
Parameters
data
AppointmentDataThe appointment to select.
Returns
SelectMonth(DateTime, IEnumerable<AppointmentData>)
Selects the specified month.
Task SelectMonth(DateTime monthStart, IEnumerable<AppointmentData> appointments)
Parameters
monthStart
DateTimeThe start of the month.
appointments
IEnumerable<AppointmentData>The appointments for this range.
Returns
SelectMore(DateTime, DateTime, IEnumerable<AppointmentData>)
Selects the specified more link.
Task<bool> SelectMore(DateTime start, DateTime end, IEnumerable<AppointmentData> appointments)
Parameters
start
DateTimeThe start.
end
DateTimeThe end.
appointments
IEnumerable<AppointmentData>The appointments for this range.
Returns
SelectSlot(DateTime, DateTime)
Selects the specified slot.
Task SelectSlot(DateTime start, DateTime end)
Parameters
Returns
SelectSlot(DateTime, DateTime, IEnumerable<AppointmentData>)
Selects the specified slot.
Task<bool> SelectSlot(DateTime start, DateTime end, IEnumerable<AppointmentData> appointments)
Parameters
start
DateTimeThe start.
end
DateTimeThe end.
appointments
IEnumerable<AppointmentData>The appointments for this range.