Sheduler onDrag envent giving default date and time.

Hi there,

<SfSchedule ShowTimeIndicator="true" ShowQuickInfo="false" AllowResizing="true" @ref="Schedular" TValue=JobsListingDisplayModel Width="100%" CssClass="schedule-cell-dimension"
                                AllowDragAndDrop="true" StartHour="@branch.OpeningTime.ToString().Substring(0, 5)" EndHour="@branch.ClosingTime.ToString().Substring(0, 5)" SelectedDate="Filter.Today" CurrentView="View.Day">
                        <ScheduleEvents TValue="JobsListingDisplayModel" Dragged="OnDragged" OnDragStart="OnJobDrag" Resized="OnResized" OnPopupOpen="@PopupOpen"></ScheduleEvents>


OnDrag event gives the default start and end time.






Thank you.

3 Replies 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team October 16, 2020 09:44 AM UTC

Hi Bibek, 

Greetings from Syncfusion Support. 

You can get the start and end time in Data property, please refer the same in the following image. 

 

Please get back to us if you need any further assistance. 

Regards, 
Nevitha 




BI Bibek November 20, 2020 12:20 AM UTC

Hi there,

I solved the issue using ActionCompleted.

 <ScheduleEvents TValue="JobsListingDisplayModel" ActionCompleted="OnActionCompleted"></ScheduleEvents>

 private async Task OnActionCompleted(ActionEventArgs<JobsListingDisplayModel> args)
    {

        if (args.ActionType == Syncfusion.Blazor.Schedule.ActionType.EventChange)
        {
            await OnDragged(args);
        }
    }

Thank You

Marked as answer

NR Nevitha Ravi Syncfusion Team November 20, 2020 03:48 AM UTC

Hi Bibek, 

Thanks for your update. 

We are happy that you have resolved your issue at your end, please get back to us if you need any assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon