Hi Daniel,
Greetings from Syncfusion Support..!
We have validated your shared query “Is there any way to load appointments between first and last visible datos on demand?. I have thousands of appointments and loading all of them is very very slow.” at our end. Yes, we can able to filter the events based on the current view (i.e., rendered dates in that view) for the Scheduler from the entire event collection. And for the same, we have prepared a CRUD sample and it can be downloaded from the below link.
Code snippet:
public IQueryable<EventData> GetEventDatas(string StartDate, string EndDate, bool ReadOnly)
{
DateTime start = DateTime.Parse(StartDate);
DateTime end = DateTime.Parse(EndDate);
return db.EventDatas.Where(evt => evt.StartTime >= start && evt.EndTime <= end); // To filter the current view events from the entire event collection.
} |
And for further reference, kindly refer the below UG link,
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Hareesh