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

How to run a Javascript when toggling RadScheduler View

3 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jesse Lawler
Top achievements
Rank 1
Jesse Lawler asked on 20 Dec 2010, 07:08 AM
I've got a RadScheduler with a height set by Javascript.  I'd like to run some additional Javascript function (to maintain the height) when a user clicks to toggle the view between Day / Week / Month / Timeline.  Is there some client event that fires when these buttons are clicked, or some other way to maintain a height parameter that has been set on the client side?

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 20 Dec 2010, 08:57 AM
Hello Jesse,


The "OnClientNavigationCommand" event fires when the scheduler is about to execute a navigation command.
More information will be available here: OnClientNavigationCommand

Another client event "OnClientNavigationComplete" executes when a navigation command has been completed.

Hope this information would help you t implement your logic.

Regards,
Shinu.
0
John
Top achievements
Rank 1
answered on 27 Sep 2011, 02:24 PM
According to telerik's documentation, these events don't fire if you are using server-side binding.  Is this still the case or a typo in the documentation?
0
Plamen
Telerik team
answered on 28 Sep 2011, 03:52 PM
Hi John,

You are right - the onClientNavigationComplete event is not fired when the RadScheduler is bound server side as is described in this help topic.

Kind regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
Jesse Lawler
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
John
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or