Appointment Mininum height

15 posts, 0 answers
  1. samin
    samin avatar
    27 posts
    Member since:
    Feb 2011

    Posted 28 May 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 01 Jun 2011 Link to this post

    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
  3. James
    James avatar
    2 posts
    Member since:
    Jul 2011

    Posted 05 Jul 2011 Link to this post

    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
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 08 Jul 2011 Link to this post

    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!

  5. James
    James avatar
    2 posts
    Member since:
    Jul 2011

    Posted 08 Jul 2011 Link to this post

    Thanks, Konstantina!

    I look forward to the forthcoming update!

    -James
  6. David
    David avatar
    2 posts
    Member since:
    Oct 2012

    Posted 04 Aug 2011 Link to this post

    The Q2 2011 is now available. Please provide an example on how to set the minimum height. Thank you!
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 05 Aug 2011 Link to this post

    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 >>
  8. Sravan
    Sravan avatar
    11 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    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.
  9. Dani
    Admin
    Dani avatar
    848 posts

    Posted 19 Aug 2011 Link to this post

    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 >>
  10. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 22 Aug 2011 Link to this post

    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.
  11. Dani
    Admin
    Dani avatar
    848 posts

    Posted 22 Aug 2011 Link to this post

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

  12. Sravan
    Sravan avatar
    11 posts
    Member since:
    Jul 2011

    Posted 26 Aug 2011 Link to this post

    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. 


  13. Dani
    Admin
    Dani avatar
    848 posts

    Posted 01 Sep 2011 Link to this post

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

  14. Sravan
    Sravan avatar
    11 posts
    Member since:
    Jul 2011

    Posted 05 Sep 2011 Link to this post

    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.
  15. Dani
    Admin
    Dani avatar
    848 posts

    Posted 06 Sep 2011 Link to this post

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

Back to Top