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

How do i toggle ScheduleView orientation between horizontal and vertical.

1 Answer 37 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 23 Sep 2018, 03:22 PM

I want to be able to toggle between the different orientations of the schedule view. I have a property bound to my view model but this doesn't seem to be working. I have tried different variations. Can someone tell me what i may be missing?

<p><telerik:TimelineViewDefinition  VisibleDays="30" <br>                                                     x:Name="TimelineViewDefinition"<br>                                                     MajorTickLength="1d" <br>                                                     Orientation="{Binding DataContext.ScheduleViewOrientation, RelativeSource={RelativeSource Mode=FindAncestor,                                                                                             AncestorType=telerik:RadScheduleView}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"</p><p>                                                     StretchAppointments="True"<br>                                                     MinorTickLength="1d"  <br>                                                     GroupHeaderDateStringFormat="MM-dd"<br>                                                     StretchGroupHeaders="False" ></p>




1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 26 Sep 2018, 02:23 PM
Hello Chris,

I've prepared a small sample project where binding the Orientation property of the active view definition to a property in the viewmodel works as expected. You can find it attached to my reply for your reference.

Could you please confirm that the ScheduleViewOrientation property of your RadScheduleView's DataContext fires property changed notifications? If that is the case, please make sure that no binding errors are thrown in the Output window of Visual Studio and that the binding is resolved.

Please let me know how this goes.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ScheduleView
Asked by
Chris
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or