Scheduler Compact Mode – Event on Resource Selection
Hello,
I’m trying to find the event that is triggered when selecting a resource in the Scheduler component, in compact mode.
I’ve seen examples on the forum where you mention that the OnActionBegin event is triggered, among other cases, when collapsing or expanding resources. However, in my case this doesn’t work (neither expanding nor selecting a resource triggers this event).
Could you please provide guidance on how to achieve the described behavior? An example is attached.
Regards,
Andrzej
SfScheduleTValue="AppointmentData"Height="550px"@bind-SelectedDate="@CurrentDate"EnableAdaptiveUI="true">
<ScheduleGroupResources="@Resources"></ScheduleGroup>
<ScheduleResources>
<ScheduleResourceTItem="ResourceData"TValue="int[]"DataSource="@OwnersData"Field="OwnerId"Title="Owner"Name="Owners"TextField="OwnerText"IdField="Id"ColorField="OwnerColor"AllowMultiple="true"></ScheduleResource>
</ScheduleResources>
<ScheduleEventsTValue="AppointmentData"OnActionBegin="OnActionBegin"></ScheduleEvents>
</SfSchedule>
@code{
DateTimeCurrentDate=newDateTime(2023,6,1);
publicstring[]Resources{get;set;}={"Owners"};
List<AppointmentData>DataSource=newList<AppointmentData>
{
newAppointmentData{Id=1,Subject="Meeting",StartTime=newDateTime(2023,6,1,9,30,0),EndTime=newDateTime(2023,6,1,11,0,0),OwnerId=1},
newAppointmentData{Id=2,Subject="Swimming",StartTime=newDateTime(2023,6,2,10,30,0),EndTime=newDateTime(2023,6,2,12,30,0),OwnerId=2},
};
publicList<ResourceData>OwnersData{get;set;}=newList<ResourceData>
{
newResourceData{OwnerText="Nancy",Id=1,OwnerColor="#ffaa00"},
newResourceData{OwnerText="Steven",Id=2,OwnerColor="#f8a398"},
};
publicclassAppointmentData
{
publicintId{get;set;}
publicstringSubject{get;set;}
publicDateTimeStartTime{get;set;}
publicDateTimeEndTime{get;set;}
publicintOwnerId{get;set;}
}
publicclassResourceData
{
publicintId{get;set;}
publicstringOwnerText{get;set;}
publicstringOwnerColor{get;set;}
}
publicvoidOnActionBegin(Syncfusion.Blazor.Schedule.ActionEventArgs<AppointmentData> args)
{
Console.WriteLine("I'm here");
}
}
I’ve noticed the same issue—selecting a resource in Retro Bowl compact mode doesn’t trigger the event. It would be helpful to know the correct way to handle this.
Hi Andrzej,
Greetings from Syncfusion Support!
We have reviewed your query and found that instead of using the OnActionBegin event, we recommend using the DataBound or DataBind event of the Scheduler component. These events are triggered after selecting a resource in compact view. Please refer to the links below for more details.
Sample: https://blazorplayground.syncfusion.com/VjroiZjRIUslpgPA
API:
Documentation:
https://blazor.syncfusion.com/documentation/scheduler/events#databinding
https://blazor.syncfusion.com/documentation/scheduler/events#databound
Please feel free to reach out if you need further assistance or clarification. We're happy to help!
Regards,
Viswajith Nagarajan
Hello,
thanks for the quick reply. I tried your suggestion (using DataBound / DataBinding), but I still don’t get the information I need.
Selecting a resource in compact view does trigger DataBound / DataBinding, but the event args don’t include any identifier or data showing which resource was selected. These events also fire on every data refresh, so they don’t reliably indicate user selection. In my testing, OnActionBegin / ActionBegin also didn’t fire for resource selection (expand/collapse/select) in compact view.
My goal:
When the user selects a resource in the compact resource sidebar, I need a reliable event or callback that provides either the selected resource’s Id or the resource object so I can filter or update the schedule accordingly.
I have one more question related to this topic, and resolving this issue would basically be sufficient for me:
https://blazor.syncfusion.com/documentation/scheduler/how-to/different-work-hours-for-each-days
Everything works correctly there except for properly setting the working hours when changing the resource in compact view. This happens because the SetWorkHours method is only triggered when the scheduler is created and in the OnDataBound event — which fires during calendar navigation actions. Since the OnDataBound event is not triggered when the resource changes, the working hours are not updated in that case.
Regards,
Andrzej
Andrzej,
Your reported problem is considered a bug. The fix for this defect will be included in our upcoming weekly patch release, which is expected to be rolled out by October 28, 2025. You can track the status of the fix at the following link:
Feedback link: https://www.syncfusion.com/feedback/70561/issue-occurs-in-blazor-scheduler-actioncompleted-not-trig…
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Regards,
Viswajith N
Hi Andrzej,
We are glad to announce that our weekly release (V31.2.4) has been rolled out successfully. The fix for the issue has been included in our weekly release (31.2.4). Upgrade to the latest version to resolve the issue.
Now, you can use the ActionBegin or ActionComplete event, which will be triggered when changing the resource in compact mode.
Release notes: https://blazor.syncfusion.com/documentation/release-notes/31.2.4?type=all#schedule
Feedback: https://www.syncfusion.com/feedback/70561/issue-occurs-in-blazor-scheduler-actioncompleted-not-trig…
Sample: https://blazorplayground.syncfusion.com/BjVSiDVleZzuIUNo
Root Cause: When change resource from one to another ActionComplete event is not triggered. This occurs because the ActionComplete event not implemented in existing source.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.
Regards,
Viswajith Nagarajan
Thank you very much. This will definitely make it easier to handle the component properly.
Best regards,
Andrzej
Hi Andrzej Stach,
Thanks for your update. We're glad to hear that your issue has been resolved. Please feel free to reach out if you need any further assistance.
Regards,
Viswajith Nagarajan
- 7 Replies
- 3 Participants
-
AS Andrzej Stach
- Oct 3, 2025 09:55 AM UTC
- Oct 29, 2025 05:30 AM UTC