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

RadScheduleView MonthView

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robi
Top achievements
Rank 2
Robi asked on 29 Aug 2013, 09:44 AM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Sep 2013, 07:58 AM
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 >>
Tags
General Discussions
Asked by
Robi
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or