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

Radscheduler selected date/time

3 Answers 181 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
dima
Top achievements
Rank 1
dima asked on 04 Sep 2007, 09:20 AM
Hello,

Can I get selected date/time on doubleclick in radscheduler (on oppening edit/insert appointment )

Thanks.

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Sep 2007, 03:52 PM
Hello,

Unfortunately, this cannot be achieved with the preview refresh version. For the release version we will introduce a Time property as part of the SchedulerFormCreatingEventArgs, so you will be able to use code such as this:

private void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) 
    if (e.Mode == FormMode.Insert) 
    { 
        DateTime date = e.Time; 
    } 
 

As a note, the times returned by RadScheduler are always in UTC.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin
Top achievements
Rank 1
answered on 02 Nov 2012, 04:51 PM
Could you please let me know what release version that allows you to use the code behind such as the example you provide?  I'm trying to find a way to get the time from the time slot a user click.  I'm using Q3 2011.
0
Plamen
Telerik team
answered on 05 Nov 2012, 11:28 AM
Hello Kevin, 

 
You can get the Start and the end of the TimeSlot as in the code below:

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
   {
       DateTime start = e.Appointment.Start;
       DateTime end=e.Appointment.Start.AddMinutes(((RadScheduler)sender).MinutesPerRow);
 
       Response.Write("Start:"+start+"<br/>"+"End"+end);
   }
All the best,
Plamen
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
dima
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Kevin
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or