Class ScheduleEvents<TValue>
Provides event handlers for the SfSchedule<TValue> component.
Inheritance
Namespace: Syncfusion.Blazor.Schedule
Assembly: Syncfusion.Blazor.dll
Syntax
public class ScheduleEvents<TValue> : ComponentBase
Type Parameters
Name | Description |
---|---|
TValue | The value type of the schedule component. |
Examples
<SfSchedule TValue="AppointmentData">
<ScheduleEvents TValue="AppointmentData" OnCellClick="TriggerCellClick" OnEventClick="TriggerEventClick"></ScheduleEvents>
</SfSchedule>
@code{
private void TriggerCellClick(CellClickEventArgs args)
{
//write custom code.
}
private void TriggerEventClick(EventClickArgs<AppointmentData> args)
{
//write custom code.
}
public class AppointmentData
{
public int Id { get; set; }
public string Subject { get; set; }
public string Location { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
}
}
Constructors
ScheduleEvents()
Declaration
public ScheduleEvents()
Properties
ActionCompleted
Triggers upon successful completion of the scheduler actions.
Declaration
public EventCallback<ActionEventArgs<TValue>> ActionCompleted { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ActionEventArgs<TValue>> |
Created
Triggers after the SfSchedule<TValue> component is created.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
DataBinding
Triggers before the data is bound to the scheduler.
Declaration
public EventCallback<DataBindingEventArgs<TValue>> DataBinding { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DataBindingEventArgs<TValue>> |
DataBound
Triggers after the event data is bound to the scheduler.
Declaration
public EventCallback<DataBoundEventArgs<TValue>> DataBound { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DataBoundEventArgs<TValue>> |
Destroyed
Triggers when the SfSchedule<TValue> component is destroyed.
Declaration
public EventCallback<object> Destroyed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Dragged
Triggers when the dragging of an appointment is stopped.
Declaration
public EventCallback<DragEventArgs<TValue>> Dragged { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DragEventArgs<TValue>> |
EventRendered
Triggers before each event is rendered on the scheduler user interface.
Declaration
public EventCallback<EventRenderedArgs<TValue>> EventRendered { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<EventRenderedArgs<TValue>> |
MoreEventsClicked
Triggers when the more events indicator is clicked.
Declaration
public EventCallback<MoreEventsClickArgs> MoreEventsClicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MoreEventsClickArgs> |
Navigating
Triggers before the date or view is navigated on the scheduler.
Declaration
public EventCallback<NavigatingEventArgs> Navigating { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<NavigatingEventArgs> |
OnActionBegin
Triggers at the beginning of every scheduler action.
Declaration
public EventCallback<ActionEventArgs<TValue>> OnActionBegin { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ActionEventArgs<TValue>> |
OnActionFailure
Triggers when a scheduler action fails or is interrupted, and returns error information.
Declaration
public EventCallback<ActionEventArgs<TValue>> OnActionFailure { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ActionEventArgs<TValue>> |
OnCellClick
Triggers when the scheduler cells are single-clicked or single-tapped on mobile devices.
Declaration
public EventCallback<CellClickEventArgs> OnCellClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellClickEventArgs> |
OnCellDoubleClick
Triggers when the scheduler cells are double clicked.
Declaration
public EventCallback<CellClickEventArgs> OnCellDoubleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellClickEventArgs> |
OnDragStart
Triggers when an appointment starts a drag action.
Declaration
public EventCallback<DragEventArgs<TValue>> OnDragStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<DragEventArgs<TValue>> |
OnEventClick
Triggers when the events are single-clicked or single-tapped on mobile devices.
Declaration
public EventCallback<EventClickArgs<TValue>> OnEventClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<EventClickArgs<TValue>> |
OnEventDoubleClick
Triggers when the events are double clicked.
Declaration
public EventCallback<EventClickArgs<TValue>> OnEventDoubleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<EventClickArgs<TValue>> |
OnPopupClose
Triggers before any scheduler popups are closed on the page.
Declaration
public EventCallback<PopupCloseEventArgs<TValue>> OnPopupClose { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PopupCloseEventArgs<TValue>> |
OnPopupOpen
Triggers before any scheduler popups open on the page.
Declaration
public EventCallback<PopupOpenEventArgs<TValue>> OnPopupOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PopupOpenEventArgs<TValue>> |
OnRenderCell
Triggers before each cell is rendered on the scheduler user interface.
Declaration
public EventCallback<RenderCellEventArgs> OnRenderCell { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RenderCellEventArgs> |
OnResizeStart
Triggers when an appointment is started to resize.
Declaration
public EventCallback<ResizeEventArgs<TValue>> OnResizeStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeEventArgs<TValue>> |
Resized
Triggers when the resizing of appointment is stopped.
Declaration
public EventCallback<ResizeEventArgs<TValue>> Resized { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeEventArgs<TValue>> |
Methods
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |