Appointment size in month view

4 posts, 0 answers
  1. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 23 Sep 2015 Link to this post

    Is there a way to adjust the size of appointments in code, when in the month view?

     

    Later

    Art

  2. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 23 Sep 2015 in reply to Art Link to this post

    I forgot to mention - code examples in VB please. Thanks
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Art
    Art avatar
    54 posts
    Member since:
    Dec 2010

    Posted 23 Sep 2015 Link to this post

    What I really want is for the appointments to fill the amount of space available in that cell. If there is only 1 appointment that day, that appointment should fill, or almost fill, the whole day's cell. If there are multiple appointments they should size accordingly.
  5. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 24 Sep 2015 Link to this post

    Hello Art,

    Thank you for writing.

    You can programmatically adjust the appointment sizes when RadScheduler is in month view by setting the AppointmentHeight property. For the purpose you can handle the ActiveViewChanged event: 
    Private Sub RadScheduler1_ActiveViewChanged(sender As Object, e As SchedulerViewChangedEventArgs)
        Dim monthView = TryCast(Me.RadScheduler1.SchedulerElement.ViewElement, SchedulerMonthViewElement)
        If monthView IsNot Nothing Then
            monthView.AppointmentHeight = 50
        End If
     
    End Sub

    Please check the following documentation articles providing additional information: Common Visual PropertiesWorking with Views.

    The layout mechanism of RadScheduler currently does not support the type of arrangement as described in you last message. 

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top