Can I have separate classes for presentation and editing?

I have a class that is quite complex and large.  So loading of many records into the scheduler is very slow.  Can I have one view to present calendar items, and use a different data source for adding/editing appointments?

And also, is there an event in the scheduler to load records by date?  For example, load a week's worth of appointments, but have the scheduler load the next/prev week on demand?

TIA,

Miles

1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team April 8, 2021 10:34 AM UTC

Hi Miles, 

Greetings from Syncfusion Support..! 

We have prepared a CRUD sample to load the events based on the current view based on your shared query which can be downloaded from the following link. In the following sample we have filtered and loaded the appointments in current view with the help of start and end date parameters received which will be triggered on date and view navigations and while performing CRUD actions. 


        public IQueryable<EventData> GetEventDatas(string StartDate, string EndDate) 
        { 
            DateTime start = DateTime.Parse(StartDate); 
            DateTime end = DateTime.Parse(EndDate); 
            return db.EventDatas.Where(evt => evt.StartTime >= start && evt.EndTime <= end); 
        } 

Kindly try the above solution and get back to us if you need any further assistance. 

We will be happy to assist you..! 

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon