This is a migrated thread and some comments may be shown as answers.

Appointment Mininum height

14 Answers 214 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
samin
Top achievements
Rank 1
samin asked on 28 May 2011, 02:29 PM
Hi
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

Sort by
0
Konstantina
Telerik team
answered on 01 Jun 2011, 11:48 AM
Hello Samin,

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
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 Public Issue Tracking system and vote to affect the priority of the items
0
James
Top achievements
Rank 1
answered on 05 Jul 2011, 11:25 PM
Thanks for the expalanation about how the the height works, Konstantina. Do you all have a solution available for appointments which have a duration of 0?  Some of our users like to put reminders in their calendar or to record appointments which have no actual duration and the existing tool will not display these appointments.

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
0
Konstantina
Telerik team
answered on 08 Jul 2011, 01:56 PM
Hello 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!

0
James
Top achievements
Rank 1
answered on 08 Jul 2011, 04:28 PM
Thanks, Konstantina!

I look forward to the forthcoming update!

-James
0
David
Top achievements
Rank 1
answered on 04 Aug 2011, 06:44 PM
The Q2 2011 is now available. Please provide an example on how to set the minimum height. Thank you!
0
Konstantina
Telerik team
answered on 05 Aug 2011, 01:16 PM
Hello David,

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
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Sravan
Top achievements
Rank 1
answered on 18 Aug 2011, 05:41 PM
Hi 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.
0
Dani
Telerik team
answered on 19 Aug 2011, 10:52 AM
Hello Sravan,

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
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
TEC
Top achievements
Rank 2
answered on 22 Aug 2011, 06:56 AM
Hi,

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.
0
Dani
Telerik team
answered on 22 Aug 2011, 09:38 AM
Hi Tec,

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 >>

0
Sravan
Top achievements
Rank 1
answered on 26 Aug 2011, 03:54 PM
HI thanks for the reply,

As you suggested i have applied the appointment height based on some condition using AppointmentStyleSelector class

but i am facing two challenges

  1. 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.
  2. 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. 


0
Dani
Telerik team
answered on 01 Sep 2011, 08:38 AM
Hi 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 >>

0
Sravan
Top achievements
Rank 1
answered on 05 Sep 2011, 08:33 AM
Hi,

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.
0
Dani
Telerik team
answered on 06 Sep 2011, 08:03 AM
Hello Sravan,

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 >>

Tags
ScheduleView
Asked by
samin
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
James
Top achievements
Rank 1
David
Top achievements
Rank 1
Sravan
Top achievements
Rank 1
Dani
Telerik team
TEC
Top achievements
Rank 2
Share this question
or