6 Answers, 1 is accepted
0
Hi Greg,
Thank you for contacting us.
There are several options to achieve this:
1. Set the NavigationHeaderVisibility property to False, that will remove the whole row.
2. If you set only the ActiveViewDefinition to DayViewDefinition, without setting the ViewDefinitions.
3. You can create a custom theme and remove the buttons from the style at all. You can find more information how to create a custom theme in this KB article: http://www.telerik.com/support/kb/wpf/scheduler/how-to-implement-a-new-custom-theme-in-a-few-steps.aspx
Hope this information helps. Please let us know if you need further assistance.
Kind regards,
Konstantina
the Telerik team
Thank you for contacting us.
There are several options to achieve this:
1. Set the NavigationHeaderVisibility property to False, that will remove the whole row.
2. If you set only the ActiveViewDefinition to DayViewDefinition, without setting the ViewDefinitions.
3. You can create a custom theme and remove the buttons from the style at all. You can find more information how to create a custom theme in this KB article: http://www.telerik.com/support/kb/wpf/scheduler/how-to-implement-a-new-custom-theme-in-a-few-steps.aspx
Hope this information helps. Please let us know if you need further assistance.
Kind regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 26 Jan 2011, 03:54 PM
Neither of those suggestions would be a good fit at this time. So, what I ended up doing is
Private Sub SchedulingCalendar_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
'this will find the listbox that holds the buttons for changing between day, week, and month view and hide it since
'we're only showing day
ScheduleView.FindChildByType(Of ListBox)().Visibility = Windows.Visibility.Collapsed
End Sub
0
Hello Greg,
Why the second suggestion does not work for you? Generally I would strongly recommend avoiding FindChildByType and similar methods because of possible performance implications.
Kind regards,
Valeri Hristov
the Telerik team
Why the second suggestion does not work for you? Generally I would strongly recommend avoiding FindChildByType and similar methods because of possible performance implications.
Kind regards,
Valeri Hristov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 26 Jan 2011, 04:04 PM
Maybe the second suggestion will work if you have an answer as to how I would set the following properties without using the DayViewDefinition.
<telerik:DayViewDefinition FirstDayOfWeek="Monday" MinorTickLength="15min" GroupFilter="{Binding GroupFilter}" DayStartTime="8:00:00" DayEndTime="17:00:00" />
0
Accepted
Hello Greg,
You could set the properties on the DayViewDefinition:
<telerik:RadScheduleView>
<telerik:RadScheduleView.ActiveViewDefinition>
<telerik:DayViewDefinition FirstDayOfWeek="Monday" ... />
</telerik:RadScheduleView.ActiveViewDefinition>
</telerik:RadScheduleView>
this is instead of the usual code that will display the navigation buttons:
<telerik:RadScheduleView>
<telerik:RadScheduleView.ViewDefinitions>
<telerik:DayViewDefinition FirstDayOfWeek="Monday" ... />
</telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>
All the best,
Valeri Hristov
the Telerik team
You could set the properties on the DayViewDefinition:
<telerik:RadScheduleView>
<telerik:RadScheduleView.ActiveViewDefinition>
<telerik:DayViewDefinition FirstDayOfWeek="Monday" ... />
</telerik:RadScheduleView.ActiveViewDefinition>
</telerik:RadScheduleView>
this is instead of the usual code that will display the navigation buttons:
<telerik:RadScheduleView>
<telerik:RadScheduleView.ViewDefinitions>
<telerik:DayViewDefinition FirstDayOfWeek="Monday" ... />
</telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>
All the best,
Valeri Hristov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 26 Jan 2011, 04:14 PM
Awesome! Works like a champ!
Thanks,
Greg
Thanks,
Greg