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

Week View - Max # of Appointment to Display

9 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Maged
Top achievements
Rank 1
Maged asked on 19 Sep 2012, 04:07 PM
Hello Telerik Support Team,

Can you please advise me on how I can achieve this.

On the week View if I have many resources selected in a timeslot and gets real crowded. So I would like to limit to number of appointment appearing per day. I know the month view has the property but not the week view,

Please see attached screen shot for clarification.

Thank you for your help.

Regards,
Mafed

9 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 24 Sep 2012, 03:17 PM
Hello Maged,

RadScheduler does not support AppointmentsPerDay functionality in WeekView. One possible way to avoid this "crowded" behavior would be to set appointment visibility to false if there are more existing appointments in same range. That might be achieved using server-side event OnAppointmentDataBound:
//aspx file

<telerik:RadScheduler runat="server" ID="RadScheduler1"SelectedView="WeekView" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" .........>
......         
</telerik:RadScheduler>


//code behind

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
    {
        RadScheduler currentScheduler = sender as RadScheduler;
        if (RadScheduler1.Appointments.GetAppointmentsInRange(e.Appointment.Start, e.Appointment.End).Count > 2 && currentScheduler.SelectedView == SchedulerViewType.WeekView)
        {
            e.Appointment.Visible = false;
        }
    }

I hope this was helpful.

Kind regards,
Boyan Dimitrov
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.
0
Nour
Top achievements
Rank 1
answered on 28 Aug 2014, 05:16 PM
How will we add the More link to the time slot
0
Boyan Dimitrov
Telerik team
answered on 02 Sep 2014, 11:20 AM
Hello,

I would like to clarify that "Show More" functionality is only available out of the box for the month view. In the week view all appointments are visible. In case of having more appointment for same period each appointment width will be reduced in order all appointment to fit the time slot.

In the attached screenshot from the first post in this forum thread the "Show more" is custom solution implemented by the client. I assume that this is a special appointment with subject "Show more".

As your questions for adding controls or element to the time slot you can use the the controls collection of the e.TimeSlot.Controls in the RadScheduler TimeSlotCreated event handler for example. On the client-side the time slot element is a td element and you can simply add a element to the that time slot DOM element.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vinay
Top achievements
Rank 1
answered on 06 Feb 2015, 11:52 AM
Hi Telerik Team,

I have multiple appointments in same day but at different times. I have created the appointments for a day, same day appointments is visible in month view but in weak view is not populating the appointments. Please help me in this. If there is less appointments in day view able to see at week view. 
0
Boyan Dimitrov
Telerik team
answered on 09 Feb 2015, 04:16 PM
Hi,

Could you please elaborate a bit more on your scenario? I am afraid that I do not understand the exact problem in the screenshots.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vinay
Top achievements
Rank 1
answered on 25 Mar 2015, 10:33 AM
Hi Boyan,

I have created 30 appointments in day and switch over to month view, no appointment visible and again when we come back at day view, the day disappears. Please help us.
0
Plamen
Telerik team
answered on 30 Mar 2015, 07:12 AM
Hello,

You can control how many appointments are visible in MonthView by using the VisibleAppointmentsPerDay  property as it is shown in this online demo.

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Vinay
Top achievements
Rank 1
answered on 16 Apr 2015, 11:19 AM

Hi Boyan,

I have MVC application in which I have used Telerik ASP.Net Scheduler. So, in this control, I create more than 28 appointments for a specific day, but after creating, these  are not populating in Day View and Week View. But same appointments are populating into Month View with "more.." link. 

0
Plamen
Telerik team
answered on 17 Apr 2015, 07:12 AM
Hi,

You ca refer to this KB article where a similar behavior is described.

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Scheduler
Asked by
Maged
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Nour
Top achievements
Rank 1
Vinay
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or