We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing date not working when using ActionCompleted

Thread ID:

Created:

Updated:

Platform:

Replies:

148413 Oct 18,2019 08:09 AM UTC Jul 6,2020 11:53 AM UTC Blazor 6
loading
Tags: Scheduler
Uwe Hein
Asked On October 18, 2019 08:30 PM UTC

Hi everybody,

  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

Nevitha Ravi [Syncfusion]
Replied On 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 


Uwe Hein
Replied On October 23, 2019 08:07 AM UTC

Nevitha,

    thank you very much for your fast response. It works OK now.

Uwe

Nevitha Ravi [Syncfusion]
Replied On 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 


Nevitha Ravi [Syncfusion]
Replied On 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 


Mohammed
Replied On 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

Alagumeena Kalaiselvan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon