Date doubleclick redirct to form.

3 posts, 1 answers
  1. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 25 Jul 2011 Link to this post

    When the schedular is in month view, is it possible to double click on a given date, and rather than displaying the schedular in day view, direct the user to a new page and include the date clicked as part of the querystring?

    I have a simple schedular in month view that I would like a user to double click a date, then the user is directed to a form that will be submitted to a database. I would like to populate a label on the form with the date the user double clicked.

    Thank you in advance.
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 27 Jul 2011 Link to this post

    Hello Allan,

    You may handle the NavigationCommand event where the command name is SwitchToSelectedDay and you will have the e.SelectedDate to redirect to some other page:
    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
        {
            if (e.Command==SchedulerNavigationCommand.SwitchToSelectedDay)
            {
                e.Cancel = true;
                Response.Write(e.SelectedDate);
                Response.Redirect("http://www.telerik.com");
            }
            
        }
     
    All the best, Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 02 Aug 2011 Link to this post

    Thank you.
Back to Top