Clear all events on AgendaView

Hello,


I am using the SfScheduler AgendaView. When I scroll I can load more events without a problem, I am adding some functionality to filter by different parameters and I will need to clear all the events from the current calendar and load more based on my filters (I am using VM).

How can I clear all events or reset the calendar completely?


1 Reply 1 reply marked as answer

VM Vidyalakshmi Mani Syncfusion Team December 7, 2023 02:09 PM UTC

Hi Ivan,


To acheive your requirement, initially you can load appointments into an appointment collection and then filter that appointment collection based on your specific conditions (here we have used the Subject of the appointment for filtering ), then bind that filtered appointment to the AppointmentSource for the scheduler. We have prepared a simple sample demonstrating this. Please find the attached sample for your reference.


We hope that this helps you. Please let us know if you need further assistance.


Regards,
Vidyalakshmi M.



Attachment: GettingStarted_21b50d20.zip

Marked as answer
Loader.
Up arrow icon