Found a way to do this:
1. Button fires the read function on the resources data source
$(
'#room-filter-submit'
).click(
function
() {
$(
'#BookingGrid'
).data().kendoScheduler.resources[0].dataSource.read();
});
2. Added handler to Change event on the read action of the Resources data source
.DataSource(source => source
.Read(read => read.Action(
"JsonRooms"
,
"Booking"
)
.Data(
"getRoomFilter"
)
.Type(HttpVerbs.Post)
).Events(e => e.Change(
"refreshScheduler"
)))
3. Handler will redraw the Current view
function
refreshScheduler() {
$(
'#BookingGrid'
).data().kendoScheduler.view($(
'#BookingGrid'
).data().kendoScheduler._selectedViewName);
}
Now can filter the resources and refresh the widget.
Ken.