some appointments have small duration! so they appear like a line and Title is not visible.....( attache pic show up my description).
I set "MinAppointmentHeight" ...but it doesn't work!
I use below custom datatemplate for AppointmentItemContentTemplate
<
DataTemplate
x:Key
=
"AppointmentTemplate"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"0"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Border
Background
=
"{Binding Appointment.Category.CategoryBrush}"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
Grid.RowSpan
=
"2"
Margin
=
"-2 0 0 0"
></
Border
>
<
TextBlock
x:Name
=
"PART_SubjectTextBox"
Margin
=
"0"
Grid.Row
=
"1"
Text
=
"{Binding Appointment.Title}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
FontSize
=
"11"
Foreground
=
"Black"
/>
</
Grid
>
</
DataTemplate
>
how can i set appointments to have a minimum height...i want minimum to show Title
14 Answers, 1 is accepted
The MinAppointmentHeight property works when the Orientation property of the ViewDefinition is Horizontal. To make the appointments bigger, so that the subject can be readable, I can suggest you to set the MinorTickLenght and MajorTickLenght properties of the ScheduleView. The ScheduleView has exact rendering of the appointments, so the height will depend on the height of the TimeSlot, which can be adjusted through these properties.
Hope this information helps. Please let us know if that worked for you.
Kind regards,
Konstantina
the Telerik team
I know that the Scheduler tool had a minimum height which could be set so that 0 duration appointments would still appear. Outlook offers an interesting option which shows the text in a specified area with a little pinched area denoting the duration of the appointment if that duration is less than the text height.
Is there anything available like this in ScheduleView?
Thanks in advance!
-James
This feature will be available in Q2 2011 version of the controls. The release will be in the middle of July.
Greetings,
Konstantina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I look forward to the forthcoming update!
-James
You need to set the MinAppointmentHeight property of the ScheduleView to the desired value and then enable the showing of these appointments using the EnableSmallAppointmentRendering property of the ViewDefinition. Keep in mind that the view should be vertically oriented. This will work, however, only for Day and WeekView.
Regards,
Konstantina
the Telerik team
Is it possible to set the height of the Appointment individually based on any condition.
For Example:
If i have 2 Appointments based on any condition i have to set the appointment 1 height as something like 100 and 2nd appointment height as 150
please let me know is it possible?.
Reards,
sekhar.
Appointments can have different height based on some condition. You can use the AppointmentStyleSelector to accomplish what you wish. Simpy supply different styles for appointments that have differetn heights and use the selector to determine the application of the styles.
I hope this helps.
Best wishes,
Dani
the Telerik team
How can I get this working for the MonthView? I need to display much larger Appointments in the MonthView. Please advise.
Kind regards.
--> Never mind, it was as simple as just setting the MinAppointmentHeight of the RadScheduleView.
Yes, you can set the MinAppointmentHeight property. It will have effect in MonthView and TimelineView (by default, horizontal views). However, keep in mind that the MinAppointmentHeight is ignored in Vertical orientation views.
If you need more help, let me know.
Regards,
Dani
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
As you suggested i have applied the appointment height based on some condition using AppointmentStyleSelector class
but i am facing two challenges
- When we apply custom height for the appointment based on some condition though the height of the appointment is more it is not stretching beyond resource group height.
- when we apply the custom height for the appointment with MinAppointmentHeight alignments of appointments on the view is not properly set.
i am also attaching screen shots for both the above scenarios.
please help me in this regard
Regards,
sekhar.
I tested the case with MinAppointmentHeight and I get the expected behavior as in the screenshot attached. Could you share how you apply MinAppointmentHeight to your instance of RadScheduleView and possibly the selector you use? A code snippet or a sample project would be helpful.
All the best,
Dani
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thanks for the reply.
I am facing this behavior when i add more than 1 booking for the resources on the same day.
please try that case and reproduce the behavior.
Regards,
sekhar.
We could not reproduce the behavior. Please, share a reproduceable sample which we can test and help you find out what has gone wrong.
Best wishes,
Dani
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>