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

Scheduler Day Count

1 Answer 99 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ximor Iksivich
Top achievements
Rank 1
Ximor Iksivich asked on 24 Jan 2012, 09:46 PM
Hi,
 I need to to show the appointment count for each day (preferably in the day header area) in the month/week view. I don't see a template area for the day header and the resource header template won't suffice. I just wanted to know if it was possible using the RadScheduler.

Thanks,
Ximor.

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 26 Jan 2012, 04:52 PM
Hi,

You you could use Customizing the TimeSlots online demo for a reference how to achieve such functionality. 
In WeekView, using JavaScript, you could get the table with class name .rsHorizontalHeaderTable, to add the number of appointments in its th elements. The th element will look something like this:
<th><a class="rsDateHeader" href="#2011-12-25">Sun, 25</a>Appt: 20</th>
To calculate the number of the appointments you could use the client API of the control.

As for the MonthView, you can either use the aforementioned demo, or the JS approach I suggested above. In last mentioned case you could access the div element with class name .rsDateBox to add the number of appointments right after its 'a' element which shows the current date:
<div class="rsDateBox"><a class="rsDateHeader" title="11/28/2011" href="#2011-11-28">28</a> Appts: 20</div>
To get a better idea, inspect these elements using the developer tool of your browser.

For this scenario you could use the pageLoad client event, after a previous check about the currently selected view -- this is done by the property get_selectedView() of the RadScheduler client object.

I hope this helps.

Greetings,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
Ximor Iksivich
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or