Changing date not working when using ActionCompleted
Hi everybody,
Attachment: Schedule_ActionCompleted_Error_d6739cc8.zip
when adding the ActionCompleted event to a scheduler, changing date by using ">" or "<" only works for the next week. Pressing the ">" button several times jumps back to the first shown date. Localisation does not matter. Using the calender control sometimes works at the second try.
I am using core 3.1 preview1 and Ver. 17.3.18
regards
Uwe
Attachment: Schedule_ActionCompleted_Error_d6739cc8.zip
SIGN IN To post a reply.
6 Replies
NR
Nevitha Ravi
Syncfusion Team
October 21, 2019 12:50 PM UTC
Hi Uwe,
Greetings from Syncfusion Support.
We could reproduce the reported issue and confirm this as a defect. We have logged the bug report which can be tracked from the following link, the fix will be included in our upcoming bi-weekly patch release expected to be rolled out in the end of October, 2019.
In the meantime, we suggest you to use the property SelectedDate as two way-binding to overcome the issue.
Please refer the following code.
|
@using Syncfusion.EJ2.Blazor
@using Syncfusion.EJ2.Blazor.Schedule
@using Microsoft.JSInterop
@using ScheduleLocalization.Data
<EjsSchedule @ref="ScheduleObj" TValue="AppointmentData" Height="650px" @bind-SelectedDate="@selectedDate">
<ScheduleEvents TValue="AppointmentData" ActionCompleted="OnActionCompleted"></ScheduleEvents>
</EjsSchedule>
@code {
EjsSchedule<AppointmentData> ScheduleObj;
[Inject]
IJSRuntime JsRuntime { get; set; }
DateTime selectedDate = new DateTime(2018, 2, 14);
protected override void OnAfterRender(bool firstRender)
{
this.JsRuntime.Ejs().LoadLocaleData("wwwroot/locale.json").SetCulture("de").LoadCldrData(new string[] { "wwwroot/ca-gregorian.json", "wwwroot/timeZoneNames.json", "wwwroot/numbers.json" });
}
List<AppointmentData> DataSource = new List<AppointmentData>
{
new AppointmentData { Id = 1, Subject = "Paris", StartTime = new DateTime(2018, 2, 13, 10, 0, 0) , EndTime = new DateTime(2018, 2, 13, 12, 0, 0) },
new AppointmentData { Id = 2, Subject = "Germany", StartTime = new DateTime(2018, 2, 15, 10, 0, 0) , EndTime = new DateTime(2018, 2, 15, 12, 0, 0) },
new AppointmentData { Id = 3, Subject = "Holland", StartTime = new DateTime(2018, 2, 17, 10, 0, 0) , EndTime = new DateTime(2018, 2, 17, 12, 0, 0) ,RecurrenceRule = "FREQ=DAILY;INTERVAL=1;COUNT=5" }
};
public void OnActionCompleted(ActionEventArgs<AppointmentData> args)
{
if (args.RequestType == "eventCreated")
{
// will trigger when appointment created
}
if (args.RequestType == "eventRemoved")
{
// will trigger when appointment deleted
}
if (args.RequestType == "eventChanged")
{
// will trigger when appointment edited
}
}
} |
Regards,
Nevitha
UH
Uwe Hein
October 23, 2019 08:07 AM UTC
Nevitha,
thank you very much for your fast response. It works OK now.
Uwe
NR
Nevitha Ravi
Syncfusion Team
October 23, 2019 11:01 AM UTC
Hi Uwe,
Most welcome. Kindly get in touch with us, if you would require further assistance. We are always happy in assisting you.
Regards,
Nevitha
NR
Nevitha Ravi
Syncfusion Team
November 1, 2019 11:52 AM UTC
Hi Uwe,
Thanks for being patience.
The reported issue “Continuous change of SelectedDate property not updating the value properly when ActionCompleted event used” has been fixed and included in our release v17.3.21.
Please upgrade to the latest version to avail the fix and get back to us if you need any assistance.
Regards,
Nevitha
MO
Mohammed
July 5, 2020 10:49 AM UTC
Hello,
For your information this problem still exists in the latest version (18.1.0.59). The workaround (using binding to selecteddate) is working.
The difference here is that it completely freeze the control as soon as you try to change the date (Day view)
Regards
Mohammed
AK
Alagumeena Kalaiselvan
Syncfusion Team
July 6, 2020 11:53 AM UTC
Hi Mohammed,
Thanks for your update.
We have checked your reported case “When try to change date(Day view), it completely freeze the control” by binding SelectedDate property to the scheduler and navigating the dates on Scheduler with specified version 18.1.0.59 but we regret to inform you that reported issue could not be replicated at our end. We have prepared a sample for your reference which can be get by below link.
Kindly share the below details which may more helpful to look into the issue further.
- Did you faced any console error?
- Share the issue reproducing sample code (if possible)
- Reproduce the issue with shared sample
- Issue depicting video
Regards
Alagumeena.K
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
-
UH Uwe Hein
- Oct 18, 2019 08:09 AM UTC
- Jul 6, 2020 11:53 AM UTC