Customizing MonthView

2 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 13 Jul 2012 Link to this post

    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?
  2. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 17 Jul 2012 Link to this post

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