This is a migrated thread and some comments may be shown as answers.
The AppointmentDisplayMode.TextWithShape mode does not respect ShapesOrientation.Horizontal
3 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 16 Aug 2017, 10:53 PM
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?

3 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 16 Aug 2017, 10:56 PM
If I use DisplayMode = AppointmentDisplayMode.Shape the ShapesOrientation.Horizontal ir respected.
0
Adam
Top achievements
Rank 1
answered on 17 Aug 2017, 03:02 PM
Hello Telerik support

Any work around for this issue?
0
Accepted
Stefan Nenchev
Telerik team
answered on 21 Aug 2017, 01:41 PM
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
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or