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

hiding appointments in monthview

3 Answers 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ranjan
Top achievements
Rank 1
Ranjan asked on 29 Sep 2011, 05:53 PM
Hi,
I have a situation in which in case of monthview display only no. of appointment on that day and in dayview i have to show appointments. I have written code on OnTimeSlotCreated event for counting no. of appointments and it works fine, but appointments is also display in monthview. How can i only display no. of appointments on that day not actual appointments.

3 Answers, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 12 Jul 2012, 03:04 PM
Any update on this question?  I'm trying to do a similar thing.
0
Robert Helm
Top achievements
Rank 1
answered on 12 Jul 2012, 03:15 PM
Can set the VIsibleAppointmentsPerDay = 0?

So you'd have something like:

    <telerik:RadScheduler...
    ...
    <MonthView VisibleAppointmentsPerDay="0">
    </telerik:RadScheduler>
    

I think this shows a "more..." message the user can click on that switches to Week view after the click.
0
Andy
Top achievements
Rank 1
answered on 12 Jul 2012, 07:24 PM
Thanks for the info about this property.

For those interested I also figured out a way to remove the more.. link and other empty space in the month view timeslot.
in the onTimeSlotCreated Event I set the visible property.  You can also use this event to add your own custom info such as count of appointments into the timeslot.

if (rsVisitScheduler.SelectedView == SchedulerViewType.MonthView)
 {

e.TimeSlot.Control.Controls[1].Visible = false;
e.TimeSlot.Control.Controls[2].Visible = false;
e.TimeSlot.Control.Controls[3].Visible = false;
}
Tags
Scheduler
Asked by
Ranjan
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Robert Helm
Top achievements
Rank 1
Share this question
or