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

Visible days do not stretch

5 Answers 70 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Roei
Top achievements
Rank 1
Roei asked on 27 Jul 2011, 02:44 PM
When i set visibileDays=1 to the day view definition i get the following result (see attached image) 
Why it is not stretched (like in Scheduler control)

5 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 27 Jul 2011, 02:50 PM
Hi Roei,

Probably you set StretchGroupHeaders=false? Having a custom Style for GroupHeader with specified Width could also be the cause for the problem...

Regards,
Valeri Hristov
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
Roei
Top achievements
Rank 1
answered on 27 Jul 2011, 03:16 PM
No, it was a scrollViewer that is surrounding my schedule view:

 <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="0">

Removing the  HorizontalScrollBarVisibility="Auto" fixed the problem Why is that?
0
Valeri Hristov
Telerik team
answered on 27 Jul 2011, 03:30 PM
Hello Roei,

I would strongly recommend avoiding to put ScrollViewer around RadScheduleView, unless RadScheduleView has Width and Height. As with every virtualized control, you are losing the ScheduleView virtualization if you put it inside a ScrollViewer.

Greetings,
Valeri Hristov
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
Roei
Top achievements
Rank 1
answered on 27 Jul 2011, 03:34 PM
Hi Valery Thanks for the rapid response!!!

so what should i set if i want the schedule view control to fit its container (i don't want to set fixed width or height) and to
show scroll bars only when necessary?

Thanks

Roei
0
Valeri Hristov
Telerik team
answered on 27 Jul 2011, 04:57 PM
By default RadScheduleView automatically fits the container, you don't have to set properties to do this. Probably the control is inside a StackPanel or has Horizontal/VerticalAlignment which affect the stretching?

Regards,
Valeri Hristov
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!

Tags
ScheduleView
Asked by
Roei
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Roei
Top achievements
Rank 1
Share this question
or