ActionCompleted not called when using ScheduledResources

When using the Schedule component with ScheduleResources, my OnActionCompleted is not called. But if this is removed, it works completely fine and is called as expected.

Is this a bug?

<SfSchedule @ref="scheduleRef" TValue="AppointmentData" @bind-SelectedDate="@SelectedDate">
<ScheduleWorkHours Highlight="false"></ScheduleWorkHours>
<ScheduleResources>
<ScheduleResource TItem="ResourceData" TValue="int[]" DataSource="Resources" Field="OwnerId" Title="Owner" Name="Owners" TextField="OwnerText" IdField="ID" AllowMultiple="true" ColorField="Color"></ScheduleResource>
</ScheduleResources>
<ScheduleEvents TValue="AppointmentData" ActionCompleted="@OnActionCompleted" OnCellClick="@OnCellClick" OnEventClick="@OnEventClick"></ScheduleEvents>
<ScheduleEventSettings DataSource="ScheduledEvents">
<ScheduleField Id="ID">
<FieldSubject Name="Script"></FieldSubject>
</ScheduleField>
</ScheduleEventSettings>
<ScheduleViews>
<ScheduleView Option="View.Day"></ScheduleView>
<ScheduleView Option="View.Week"></ScheduleView>
</ScheduleViews>
<ScheduleTemplates>
<EditorTemplate>
<table class="custom-event-editor" width="100%" cellpadding="5">
<tbody>
<tr>
<td class="e-textlabel">Schedule</td>
<td colspan="4">
<SfDropDownList TValue="int" TItem="ScheduleGrouping" @bind-Value="@((context as AppointmentData).GroupingId)" DataSource="@this.ScheduleState.Value.ScheduleGroupings" Placeholder="Choose schedule">
<DropDownListFieldSettings Value="ScheduleGroupingId" Text="Title"></DropDownListFieldSettings>
</SfDropDownList>
</td>
</tr>
<tr>
<td class="e-textlabel">Script</td>
<td colspan="4">
<SfTextBox @bind-Value="@((context as AppointmentData).Script)"></SfTextBox>
</td>
</tr>
<tr>
<td class="e-textlabel">Parameters</td>
<td colspan="4">
<SfTextBox @bind-Value="@((context as AppointmentData).Parameters)"></SfTextBox>
</td>
</tr>
<tr>
<td class="e-textlabel">From</td>
<td colspan="4">
<SfDateTimePicker @bind-Value="@((context as AppointmentData).StartTime)"></SfDateTimePicker>
</td>
</tr>
<tr>
<td class="e-textlabel">To</td>
<td colspan="4">
<SfDateTimePicker @bind-Value="@((context as AppointmentData).EndTime)"></SfDateTimePicker>
</td>
</tr>


<tr>
<td class="e-textlabel">Recurrence</td>
<td colspan="4">
<SfRecurrenceEditor @bind-Value="@((context as AppointmentData).RecurrenceRule)"></SfRecurrenceEditor>
</td>
</tr>
</tbody>
</table>
</EditorTemplate>
</ScheduleTemplates>
</SfSchedule>

1 Reply

VR Vijay Ravi Syncfusion Team May 24, 2023 07:38 AM UTC

Hi Jamie,


We checked your reported query for binding ActionComplete event at our end. it rendered as expected. However, we suspect that you are referring to a scripts and styles version that is different from your installed Syncfusion NuGet. Please ensure that the scripts and styles are referring to the installed Syncfusion NuGet version. If you have the 21.2.5 version NuGet installed, you must use the same version styles and scripts as seen in the shared snippet below.


[Layout.cshtml]

<link rel='nofollow' href=https://cdn.syncfusion.com/blazor/21.2.5/styles/material.css rel="stylesheet" />

<script src=https://cdn.syncfusion.com/blazor/21.2.5/syncfusion-blazor.min.js type="text/javascript"></script>


Please check our shared suggestion and if still you are facing the same issue, share the below details to proceed further.

• Reproduce the issue in our shared sample or

• Share the issue reproducing sample.



Regards,

Vijay Ravi


Attachment: ActionComplete_4fc5ab81.zip

Loader.
Up arrow icon