Radscheduler selected date/time

4 posts, 0 answers
  1. dima
    dima avatar
    34 posts
    Member since:
    Jul 2007

    Posted 04 Sep 2007 Link to this post

    Hello,

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

    Thanks.
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 04 Sep 2007 Link to this post

    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
  3. Kevin
    Kevin avatar
    17 posts
    Member since:
    Jul 2012

    Posted 02 Nov 2012 Link to this post

    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.
  4. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 05 Nov 2012 Link to this post

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