I have a Scheduler and several other controls on a page. Sometimes I want scheduler events to invoke AjaxRequests and other times I would like the entire page to post back. For example when a user changes the date on the scheduler I want the calendar control to update but when I change the view to Month view I would like the entire page to refresh.
I tried handling the AjaxManager's OnAjaxRequestStart() event so that I can determine the scheduler's current view however after getting reference to the scheduler it's SelectedView property returns null. Here's an example:
function AjaxManager_RequestStart(sender, eventArgs) |
{ |
debugger |
var scheduler = $find("<%= RadScheduler1.ClientID %>"); |
var currentView = scheduler.get_selectedView(); // selectedView is always null |
} |
Is there another way to do this? It would be nice if there was a client-side OnSelectedViewChanged event of the scheduler.
Al