Declined
Last Updated: 17 Jan 2025 06:48 by Kostas
Kostas
Created on: 13 Jan 2025 07:26
Category: Scheduler
Type: Bug Report
0
When I try to move by drag and drop an event between resources the resource is not updated.

When I try to move by drag and drop  an event between resources the resource on the event is not updated.

I used this

 <TelerikScheduler Data="@_trips" Height="500px"
                   @bind-Date="@StartDate"
                   IdField="@(nameof(TripInfo.Id))"
                   StartField="@(nameof(TripInfo.StartDateTime))"
                   EndField="@(nameof(TripInfo.EndDateTime))"
                   TitleField="@(nameof(TripInfo.BusCode))"
                   OnUpdate="@UpdateTrip"
                    OnDelete="@DeleteAppointment"
                   ConfirmDelete="true"
                    AllowDelete="true"
                   AllowUpdate="true"
                   DescriptionField="@(nameof(TripInfo.BusDescription))" @bind-View="@sv" @ref="@_scheduler">

     <SchedulerSettings>

         <SchedulerGroupSettings Resources="@GroupingResources" Orientation="@SchedulerGroupOrientation.Vertical"></SchedulerGroupSettings>
     </SchedulerSettings>
     <SchedulerViews>
         <SchedulerTimelineView StartTime="@DayStart" ColumnWidth="20" SlotDivisions="6" SlotDuration="60" EndTime="@DayEnd" NumberOfDays="1" WorkDayEnd="@WorkDayEnd" WorkDayStart="@WorkDayStart" >
   
                  
             </SchedulerTimelineView>

     </SchedulerViews>
     <SchedulerResources>
         <SchedulerResource Field="@(nameof(TripInfo.BusCode))" Title="Resources" TextField="@(nameof(BaseCodeInfo.Name))" ValueField="@(nameof(BaseCodeInfo.Code))" Data="@_resources"></SchedulerResource>
     </SchedulerResources>
 
        
 </TelerikScheduler>
2 comments
Kostas
Posted on: 17 Jan 2025 06:48

i found out what the problem was For your information I had set the title field the same as the resource fields So the resource field was overriden by the title field during the update process.

 TitleField="@(nameof(TripInfo.BusCode))"

  <SchedulerResource Field="@(nameof(TripInfo.BusCode))" 

Maybe you should add a validation check to prevent users from setting the same  fields twice.

 

Thannks for the effort

ADMIN
Dimo
Posted on: 16 Jan 2025 17:41

Hello Kostas,

Our Scheduler Resource Grouping online demo works as expected with dragged appointments across different resources. I assume the issue may be caused by incorrect update. Please debug and verify what's happening in the Scheduler OnUpdate handler. If the issue persists, please provide an isolated runnable example for inspection.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.