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

Date doubleclick redirct to form.

2 Answers 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 2
Allan asked on 25 Jul 2011, 06:01 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 27 Jul 2011, 03:05 PM
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.

0
Allan
Top achievements
Rank 2
answered on 02 Aug 2011, 06:02 PM
Thank you.
Tags
Scheduler
Asked by
Allan
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Allan
Top achievements
Rank 2
Share this question
or