popup closing button
Hi,
I was using scheduler and on customizing popup using ScheduleQuickInfoTemplates the close button is no longer available. So i have added a close icon for closing popup and added below code to close it .
await SheduleRef.CloseQuickInfoPopup();
But my scheduler is reloading on closing popup this way. Is there anyway i can stop the reload happening on closing popup or can i use the original popup close button?
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
BS
Balasubramanian Sattanathan
Syncfusion Team
January 4, 2021 10:01 AM UTC
Hi Smisha,
Greetings from Syncfusion Support.
We have validated your requirement at our end and let you know that we can achieve it by making use of the below code snippet. And we have tried to reproduce the “scheduler is reloading on closing popup” reported problem in the below sample. But unfortunately, we were unable to reproduce it. The scheduler is working properly when we close the quick popup.
|
<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> |
Sample: https://www.syncfusion.com/downloads/support/forum/161073/ze/Blazor_sample_QuickInfo1360853874.zip
Kindly try the above solution and let us know if you need further assistance.
Regards,
Balasubramanian S
SA
Smisha Alias
January 6, 2021 08:20 AM UTC
Hi,




Attachment: QuickInfoTemplate694587340_(2)_b237d7fe.zip
This method didn't resolve my issue. You can reproduce the issue with the attached project. The repo steps are
1. select jan 7 as date using the arrow keys
at that time the day format is
2. Select " more details" on popup and close the edit now the day format changed to
and on clicking the arrow key to select next date it is loading continuously.
This issue is found in the project attached, for me when am using the similar code on my project, i can no longer see the appointments in next date on following these steps.
Attachment: QuickInfoTemplate694587340_(2)_b237d7fe.zip
BS
Balasubramanian Sattanathan
Syncfusion Team
January 7, 2021 12:25 PM UTC
Hi Smisha,
Thanks for the update.
We have validated your reported problem in the shared sample and let you know that you have added eventSettings tag twice and also added views in the eventSettings tag. And also you have used TimelineDay view as currentView but it is not added to the View list. Due to these reasons, the reported problem has occurred. We have modified the sample for your reference which can be downloaded from the below link.
|
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> |
Sample: https://www.syncfusion.com/downloads/support/forum/161073/ze/QuickInfoTemplate1768192178.zip
Kindly try the above solution and let us know if you need further assistance.
Regards,
Balasubramanian S
SA
Smisha Alias
January 8, 2021 01:53 PM UTC
Hi,
It seems on calling SheduleRef.CloseQuickInfoPopup() grid is being Refreshed, as a result OnInitializedAsync() is called. Is there anyway i can stop OnInitializedAsync() being called.
Thanks Regards,
Smisha Alias
BS
Balasubramanian Sattanathan
Syncfusion Team
January 11, 2021 11:37 AM UTC
Hi Smisha,
Thanks for the update.
We have analyzed your reported scenario and tried to reproduce it at our end with the previously shared sample. But unfortunately, we were unable to reproduce it, please refer to the following sample for the same.
If you still face the problem try to replicate the issue in above sample to validate the issue at our end or else try by adding flag variable to prevent the calling of functionalities in the OnInitializedAsync method as in the below code snippet.
|
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
}
} |
Regard,
Balasubramanian S
Marked as answer
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
- Marked answer
-
SA Smisha Alias
- Dec 31, 2020 10:50 AM UTC
- Jan 11, 2021 11:37 AM UTC