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

Change the appointment width

3 Answers 142 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Annett
Top achievements
Rank 1
Annett asked on 25 Jan 2012, 03:44 PM
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

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 30 Jan 2012, 06:19 PM
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 >>
0
Annett
Top achievements
Rank 1
answered on 31 Jan 2012, 10:36 AM
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
0
Accepted
Konstantina
Telerik team
answered on 02 Feb 2012, 01:30 PM
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 >>
Tags
ScheduleView
Asked by
Annett
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Annett
Top achievements
Rank 1
Share this question
or