Client Side Navigation on Timeline View

2 posts, 0 answers
  1. Steven
    Steven avatar
    27 posts
    Member since:
    May 2012

    Posted 27 Mar 2013 Link to this post

    When the user clicks the arrows on the top left to navigate to the next or previous period, I want to move the calendar a specified number of days.  The default behavior is for it to move the number of days that you show.  Here's what I came up with which isn't working.

    What I'd really like to do is add 7 days to the currently visible start date.

    function clientNavigationCommandHandler(sender, eventArgs) {
                if (eventArgs.get_command() == Telerik.Web.UI.SchedulerNavigationCommand.NavigateToNextPeriod) {
                        var d = new Date();
                           d.setDate(d.getDate() + 7);
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 28 Mar 2013 Link to this post


    Your observations are absolutely correct and the RadScheduler client-side method set_selectedDate works only with web service binding. However, you can use RadAjax and update RadScheduler with the approach from this topic: Manually add an AJAX request to a client-side event of an HTML element.

    Please find attached a sample project that implements very similar scenario.

    Boyan Dimitrov
    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