Multi-calendar very slow

I have a page with a Calendar component with multi-calendar enabled.

If I remove all the bindings an events, it works well.

However, if I add the @bind-Values attribute, or if I hook a ValueChanged event, then suddenly it becomes very slow.
It can sometimes take a second between the user clicking on a certain date, and until it is shown on the calendar.

Same behavior on PC (all browsers) and mobile.

Any idea why, or how I can optimize it?

1 Reply 1 reply marked as answer

SN Sevvandhi Nagulan Syncfusion Team March 8, 2021 02:08 PM UTC

Hi Yul, 


Greetings from Syncfusion support. 


We looked into your query. We created a sample with the mentioned requirement and tried to reproduce the delay issue on our end. Unfortunately, we were unable to replicate the mentioned issue. For your reference, we have attached the code and sample below. 



<SfCalendar TValue="DateTime?" @bind-Value="calendarValue" IsMultiSelection="true"> 
    <CalendarEvents TValue="DateTime?" ValueChange="onChange"></CalendarEvents> 
</SfCalendar> 
 
 
 
@code { 
 
    public DateTime? calendarValue { get; set; } = DateTime.Now; 
 
 
    public void onChange(ChangedEventArgs<DateTime?> e) 
    { 
 
    } 
} 


Please find the sample below. 




If the information provided above is does not help you, please modify the attached sample or provide additional information such as events used in the application, server/client application type and Syncfusion package version to investigate the issue further at our end. 


Also, if any operation was performed within the ValueChange event, please share the details. 


Regards, 
Sevvandhi N 



Marked as answer
Loader.
Up arrow icon