RadScheduleView MonthView

2 posts, 0 answers
  1. Robi
    Robi avatar
    7 posts
    Member since:
    Mar 2013

    Posted 29 Aug 2013 Link to this post

    Hi,

    I've an problem with my RadScheduleView MonthViewDefintion. When I'm creating an Appointment it takes two days, but i want just 1. And when I Change the date in the Appointment and save it and then move it to Monday it disappears. I dont know where i can set the time value. With my WeekView  I dont have this problem. Any ideas where i can change the Settings for the MonthView ??

    Regards,
    Rob
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Sep 2013 Link to this post

    Hi Rob,

    When creating an appointment in MonthViewDefimition its default duration is the whole day.  If you need to change this, you can use AppointmentCreating events, please check the code snippet below:

    private void ScheduleView_AppointmentCreating(object sender, Telerik.Windows.Controls.AppointmentCreatingEventArgs e)
    {
        if( (sender as RadScheduleView).ActiveViewDefinition is MonthViewDefinition)
            e.Appointment.End = e.Appointment.Start.AddHours(2);
    }

    As to the issue when moving an appointment - we did not manage to reproduce it, can you send us more details about it?

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top