This is a migrated thread and some comments may be shown as answers.
Customizing MonthView
1 Answer 32 Views
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 13 Jul 2012, 08:51 AM
Hi Telerik Team,

I'd like that MonthView shows summary data for each day in view instead of Slots and Appointments. In my scenario, where a day can contains many appointments of 1 minute each one, the default MonthView is not usefull for users.

I'm using RadScheduleView to allow administrative users manage medical agendas. User must schedule appointments for medical visits in one of the available agendas in a service. For example, let's supose that a patient wants to schedule a medical visit for cardiology service. There are several doctors in cardiology service and the administrative user can schedule the appointment in any doctor agenda. So, I'm grouping the ScheduleView by doctors. MonthView can be usefull for users to quickly watch agendas occupation.

Currently, MonthView show a calendar foreach group, and foreach date it shows all appointments. What I want is that MontView shows only one calendar for all groups. And at every day show the summary of each group.

Do you think I can accomplish this with the current ScheduleView?

1 Answer, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 17 Jul 2012, 04:22 PM
Hi,

Finally I found a solution to accomplish this purpose. I don't think it's the optimal one but at least it works and it's really to implement. What I did is create a "DaySummaryAppointment" class inheriting from telerik's Appointment class. This class contains all the needed data and adds a custom Resource in its Resources Collection. Then, I've created a DataTemplate for the MonthView, diferent than the one used by DayView and WeekView. My RadScheduleView instance contains a DayViewDefinition, a WeekViewDefinition and a MonthViewDefinition. I've provided GroupFilter to DayViewDefinition and WeekViewDefinitio to filter all custom Resources (DaySummaryAppointments) and a different GroupFilter to MonthViewDefinition to only allow DaySummaryAppointments. Finally, with a ScheduleViewDataTemplateSelector I can select the MonthView DataTemplate or DayViewDataTemplate depending on the current active view.
Asked by
Daní
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Share this question
or