The AppointmentDisplayMode.TextWithShape mode does not respect ShapesOrientation.Horizontal

4 posts, 1 answers
  1. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 16 Aug Link to this post

    Hello!

    I am trying set the style of the appointments of the calendar but for some reason this combination breaks the alignment somehow, here is the code I am using:

    CalendarAppointmentsStyle GetCalendarStyle()
    {
        return new CalendarAppointmentsStyle
        {
            DisplayMode = AppointmentDisplayMode.TextWithShape,
            //DisplayMode = AppointmentDisplayMode.Shape,
            Padding = new Thickness(0, 4, 0, 2),
     
            MaxCount = 2,
            Spacing = 2,
     
            MoreTextFormatString = "+",
            MoreTextColor = Color.Black,
            ReserveIndicatorSpace = false,
     
            TextHorizontalLocation = HorizontalLocation.Center,
            TextVerticalLocation = VerticalLocation.Bottom,
            ShapesHorizontalLocation = HorizontalLocation.Center,
            ShapesVerticalLocation = VerticalLocation.Bottom,
            ShapesOrientation = Orientation.Horizontal,
             
            ShapeSize = new Size(8, 8),
            ShapeType = CalendarAppointmentShapeType.Ellipse,
        };
    }

     

    In stead of showing like this:
    Image1

    It is being showed like this:
    Image2

    Any fixes for this?

  2. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 16 Aug Link to this post

    If I use DisplayMode = AppointmentDisplayMode.Shape the ShapesOrientation.Horizontal ir respected.
  3. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 17 Aug Link to this post

    Hello Telerik support

    Any work around for this issue?
  4. Answer
    Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    503 posts

    Posted 21 Aug Link to this post

    Hi Adam,

    Thank you for the pictures. However, it would be expected that the ShapesOrientation.Horizontal is not applied when you are in this mode as there would be no space for the text to appear so the control was designed in such way. Unfortunately, we cannot suggest a workaround for this issue as the control behaves as designed. 

    Regards,
    Stefan Nenchev
    Progress 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