Change the appointment width

4 posts, 1 answers
  1. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 25 Jan 2012 Link to this post

    Hi,

    I have a horizontal oriented scheduleview. I want to set a smaller width-property to the appointments. I tryed MinAppointmentWidth but nothing happend. The appointments are 100px? and i must scroll horizontal to see the second half of the day. I tried viewbox, but the then the scheduleview is too small to read. I had set MinTicks = 1h and MajTicks 6h. So the MinTick column could be 10 or 20px.
    Can I set the width in the template? Where?

    Thanks,
    Annett
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 30 Jan 2012 Link to this post

    Hello Annett,

    For which view you are refering to? If you could give us some more information about your case. Sending us some screenshots will be very helpful.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Annett
    Annett avatar
    24 posts
    Member since:
    Sep 2011

    Posted 31 Jan 2012 Link to this post

    Hello Konstantina,

    I attached a screenshot. The red arrow is the current width for 1 hour. It is too big for my windowsize. The scheduleview shows only 15 hours till 3pm. The gridviewcolumn size must be so small. If I put the scheduleview in a viewbox its too small to read the numbers and words. The solution for my problem is the green arrow.

    Question 1: What must I do to have a small width for 1 hour, like the green arrow?
    Question 2: With the TimeRulerLineStyle I can set the color for the vertical lines (major and minor). But can I set different colors for the minor and major vertical lines? Like in the screenshot the blue and yellow lines.

    Thank you
    Annett
  5. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 02 Feb 2012 Link to this post

    Hello Annett,

    Straight to your questions:
    1. In order to change the size of the TimeRuler you need to set Min/MaxTimerRulerExtent properties of the ScheduleView. You can see an example how these properties work in this online demo.
    2. You can create a CustomTimeRulerItemStyleSelector and set different colour for the minor and major ticks. More information you could find in this help article.

    Hope this helps.

    Regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top