This is a migrated thread and some comments may be shown as answers.

Client-Side Events for Scheduler Views

3 Answers 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael J.
Top achievements
Rank 1
Michael J. asked on 04 May 2009, 05:36 PM
When the RAD Scheduler is toggled between Day, Week, Month, etc. views, what client-side event is fired?

Thanks!
Mike

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 May 2009, 12:49 PM
Hi Michael,

Unfortunately no client-side events are fired when switching between view, only server-side NavigationCommand and NavigationComplete.


Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael J.
Top achievements
Rank 1
answered on 05 May 2009, 04:53 PM
Thanks for the update! 

-Mike
0
Lukas
Top achievements
Rank 2
answered on 08 May 2009, 11:47 AM
Hi,
I thought of a little work around, that will "simulate" that event for you.
Insert the "ClientEvents-OnRequestStart"-Property in your RadAjaxManager:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="onRequestStart"></telerik:RadAjaxManager> 

Then make alittle callback function in your Javascript:
  function onRequestStart(sender, arguments) 
  { 
      if(arguments.EventArgument=='{"Command":"SwitchToMonthView"}' || arguments.EventArgument=='{"Command":"SwitchToWeekView"}' || arguments.EventArgument=='{"Command":"SwitchToDayView"}')   
      { 
          //call your function or the code, that the event would call; 
      } 
  } 

This should do the trick.
Same thing as a client side event (when using AJAX), except you don't get any parameters regarding the scheduler, but you can get them elsewhere.
Tags
Scheduler
Asked by
Michael J.
Top achievements
Rank 1
Answers by
Yana
Telerik team
Michael J.
Top achievements
Rank 1
Lukas
Top achievements
Rank 2
Share this question
or