Tyler Dahle
Tyler Dahle

Reputation: 879

Get start and end dates of selected view in kendo scheduler to filter events in database query

I am wanting to filter events in my kendo scheduler from local database, not remote. Kendo website has examples on how to filter events by date using remote data... but not really local.

My plan was only to pull in the current scheduler view's events (events that occur from the start date of the view, be it month or week, or day, to the end date of the view). However, in the scheduler navigate event, you can seemingly only get the start and end date of the view you were just on, not the one you just clicked on and switched to...

I am wondering if there is a way to get the 'future' view start and end dates of the kendo scheduler, then query my database in a remote function, pull the events after start date and before end date, reset my array of kendo events to these new ones and resync my scheduler?

This is largely because I am dealing with thousands and thousands of events that I want the user to be able to see in the past or present as far back as they need to, but if they can only see a max of a month of events at a time (or week or day) there will never be very many events returned at one time...

Upvotes: 2

Views: 2712

Answers (1)

Related Questions