Week View - Max # of Appointment to Display

10 posts, 0 answers
  1. Maged
    Maged avatar
    8 posts
    Member since:
    Mar 2009

    Posted 19 Sep 2012 Link to this post

    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
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 24 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nour
    Nour avatar
    2 posts
    Member since:
    Nov 2013

    Posted 28 Aug 2014 in reply to Boyan Dimitrov Link to this post

    How will we add the More link to the time slot
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 02 Sep 2014 Link to this post

    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.

     
  6. Vinay
    Vinay avatar
    3 posts
    Member since:
    Feb 2013

    Posted 06 Feb 2015 Link to this post

    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. 
  7. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 09 Feb 2015 Link to this post

    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.

     
  8. Vinay
    Vinay avatar
    3 posts
    Member since:
    Feb 2013

    Posted 25 Mar 2015 in reply to Boyan Dimitrov Link to this post

    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.
  9. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 30 Mar 2015 Link to this post

    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.

     
  10. Vinay
    Vinay avatar
    3 posts
    Member since:
    Feb 2013

    Posted 16 Apr 2015 in reply to Boyan Dimitrov Link to this post

    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. 

  11. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 17 Apr 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017