@using Syncfusion.EJ2.Blazor.Schedule
<EjsSchedule TValue="AppointmentData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2019, 1, 1))">
<ScheduleEvents TValue="AppointmentData" OnCellClick="OnCellClick"></ScheduleEvents>
</EjsSchedule>
@code{
public void OnCellClick(CellClickEventArgs args)
{
// do ypur customization here
}
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; }
public string Description { get; set; }
public bool IsAllDay { get; set; }
public string RecurrenceRule { get; set; }
public string RecurrenceException { get; set; }
public Nullable<int> RecurrenceID { get; set; }
}
} |