How to run a Javascript when toggling RadScheduler View

4 posts, 1 answers
  1. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 20 Dec 2010 Link to this post

    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?
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Dec 2010 Link to this post

    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.

  3. John
    John avatar
    5 posts
    Member since:
    Jun 2011

    Posted 27 Sep 2011 Link to this post

    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?
  4. Plamen
    Plamen avatar
    3079 posts

    Posted 28 Sep 2011 Link to this post

    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
Back to Top