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

Too large ScheduleView

4 Answers 142 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vonziz
Top achievements
Rank 1
Vonziz asked on 25 Jan 2012, 02:37 PM
Hi everybody,

I want to know how to autosize my RadScheduleView's width to its component area without horizontal scrollbar.
This thing is automatically done with height but not with width.

Very strange... :-)

Thanks!

4 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 30 Jan 2012, 08:55 AM
Hi,

I would suggest you use  MinTimeRulerExtent and MaxTimeRulerExtent properties of the RadScheduleView. Setting a small value to the MaxTimeRulerExtent and a large one to the MaxTimeRulerExtent will do the trick for you.

All the best,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vonziz
Top achievements
Rank 1
answered on 30 Jan 2012, 10:16 AM
Hi Ivo!

With this code :

<scheduleView:RadScheduleView
                                           x:Name="scheduleView"
                                           Height="600"
                                           Width="1075"     
                                           GroupHeaderContentTemplateSelector="{StaticResource GroupHeaderContentTemplateSelector}"
                                           SpecialSlotStyleSelector="{StaticResource SpecialSlotStyleSelector}"
                                           SpecialSlotsSource="{Binding SpecialSlots}"
                                           AppointmentsSource="{Binding AppointmentListe}"
                                           ResourceTypesSource="{Binding SalleListe}"
                                           ShowDialog="RadScheduleView_ShowDialog"
                                           VisibleRangeChangedCommand="{Binding SchedulerRangeChanged}"
                                           VisibleRangeChangedCommandParameter="{Binding VisibleRange, RelativeSource={RelativeSource Self}}">
                               <telerik:RadScheduleView.GroupDescriptionsSource>
                                   <telerik:GroupDescriptionCollection>
                                       <telerik:ResourceGroupDescription ResourceType="Rooms" />
                                   </telerik:GroupDescriptionCollection>
                               </telerik:RadScheduleView.GroupDescriptionsSource>
                               <scheduleView:RadScheduleView.ViewDefinitions>
                                   <scheduleView:DayViewDefinition
                                       x:Name="dayView"
                                       Orientation="Horizontal"
                                       TimerulerMajorTickStringFormat="{}{0:%H}:{0:mm} "
                                       GroupHeaderDateStringFormat=""
                                       DayStartTime="{Binding DayStartTime}"
                                       DayEndTime="{Binding DayEndTime}"
                                       MinTimeRulerExtent="1000"
                                       MaxTimeRulerExtent = "10"
                                       MinorTickLength="{Binding TickLength}"
                                       MajorTickLength="{Binding TickLength}"  />

My scheduler is not perfectly autosized as you can see on the attached print screen.
Have you got an another trick?
0
Accepted
Ivo
Telerik team
answered on 30 Jan 2012, 02:49 PM
Hi,

Try setting 10 to MinTimeRulerExtent and 10000 to MaxTimeRulerExtent.

Kind regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vonziz
Top achievements
Rank 1
answered on 30 Jan 2012, 03:22 PM
Works perfectly!
Thanks a lot. :-)
Tags
ScheduleView
Asked by
Vonziz
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Vonziz
Top achievements
Rank 1
Share this question
or