|
<FooterTemplate>
<div class="cell-footer">
<SfButton Content="More Details" OnClick="@(e => OnMoreDetailsClick(e, context as AppointmentData))"></SfButton>
<SfButton Content="Add" IsPrimary="true" OnClick="@(e => OnAdd(e, context as AppointmentData))"></SfButton>
<SfButton Content="Close" OnClick="@(e => OnCloseClick(e, context as AppointmentData))"></SfButton>
</div>
</FooterTemplate> |
|
DO’s |
DON’T’s |
|
<ScheduleViews>
<ScheduleView Option="View.Day"></ScheduleView>
<ScheduleView Option="View.Week"></ScheduleView>
<ScheduleView Option="View.Month"></ScheduleView>
<ScheduleView Option="View.Year"></ScheduleView>
</ScheduleViews>
<ScheduleEventSettings DataSource="@DataSource">
</ScheduleEventSettings> |
<ScheduleEventSettings TValue="AppointmentData">
<ScheduleViews>
<ScheduleView Option="View.Day"></ScheduleView>
<ScheduleView Option="View.Week"></ScheduleView>
<ScheduleView Option="View.Month"></ScheduleView>
<ScheduleView Option="View.Year"></ScheduleView>
</ScheduleViews>
</ScheduleEventSettings> |
|
bool flag = true;
private async void OnMoreDetailsClick(MouseEventArgs args, AppointmentData data)
{
await ScheduleRef.CloseQuickInfoPopup();
flag = false;
AppointmentData eventData = new AppointmentData
{
Id = data.Id,
Subject = data.Subject,
Location = data.Location,
Description = data.Description,
StartTime = data.StartTime,
EndTime = data.EndTime,
IsAllDay = data.IsAllDay,
RoomId = data.RoomId,
RecurrenceException = data.RecurrenceException,
RecurrenceID = data.RecurrenceID,
RecurrenceRule = data.RecurrenceRule
};
await ScheduleRef.OpenEditor(eventData, CurrentAction.Save);
}
public async void OnInitializedAsync()
{
if (flag)
{
//your code
}
} |