Hi all,
I'm working on RadScheduleView to resemble a Month Calendar, and the only option is to use Month View Definition.
In my applicaiton, users only have Appointments on working days (Mon to Fri) and the screen space of Sat/Sun empty slots on Month View will be wasted.
Question (1):
I read my posts in this Forum and found out hiding Saturday and Sunday in Month view is not supported by RadScheduleView.
Then I try to find a work-around solution to set Styles of TimeRulerMonthViewItem and TimeRulerMonthViewGroupItem . This is what I have done, setting Visibility property binding to a convert to return Collapsed for Sat and Sun:
And I set the Border visibility property as well with the same binding and converter. The outcome of the ScheduleView is showing empty slots but Sat/Sun are still there and Appointments for Sat/Sun on empty slots.
Is there any thought on how to actually hide and making the slot collapsed?
Question 2:
Is there any way to set the width and height of the slot in Month View?
I had customized Appointment template which shows at least three lines of information for an Appointment. And I don't want the user to always click Expand button to see all the details. Is there any way to always show "Expanded" slot in Month View?
Many many thanks!
Frankie
I'm working on RadScheduleView to resemble a Month Calendar, and the only option is to use Month View Definition.
In my applicaiton, users only have Appointments on working days (Mon to Fri) and the screen space of Sat/Sun empty slots on Month View will be wasted.
Question (1):
I read my posts in this Forum and found out hiding Saturday and Sunday in Month view is not supported by RadScheduleView.
Then I try to find a work-around solution to set Styles of TimeRulerMonthViewItem and TimeRulerMonthViewGroupItem . This is what I have done, setting Visibility property binding to a convert to return Collapsed for Sat and Sun:
<
telerik:OrientedTimeRulerItemStyleSelector
x:Key
=
"TimeRulerItemStyleSelector"
MonthViewGroupStyle
=
"{StaticResource timeRulerMonthViewGroupItemStyle}"
>
<
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
<
Style
TargetType
=
"local:TimeRulerMonthViewItem"
>
<
Setter
Property
=
"Background"
Value
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}"
/>
<
Setter
Property
=
"Visibility"
Value
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateCollapsedConverter}}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"local:TimeRulerMonthViewItem"
>
<
Border
Background
=
"{TemplateBinding Background}"
BorderBrush
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=currentDateCalendarDateColorConverter}}"
BorderThickness
=
"2"
>
<
Grid
Background
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}"
>
<
telerik:RadButton
Padding
=
"0"
VerticalAlignment
=
"Top"
Height
=
"22"
Command
=
"local:RadScheduleViewCommands.SetDayViewMode"
CommandParameter
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}"
Background
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=plainCalendarDateColorConverter}}"
Style
=
"{StaticResource ResourceKey=GoToDayButtonStyle}"
>
<
ContentPresenter
Margin
=
"{TemplateBinding Padding}"
/>
</
telerik:RadButton
>
<
telerik:RadToggleButton
Visibility
=
"{Binding ExpandButtonVisibility}"
IsChecked
=
"{Binding IsExpanded, Mode=TwoWay}"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Bottom"
Content
=
"More..."
FontSize
=
"9"
/>
</
Grid
>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
</
telerik:OrientedTimeRulerItemStyleSelector
>
And I set the Border visibility property as well with the same binding and converter. The outcome of the ScheduleView is showing empty slots but Sat/Sun are still there and Appointments for Sat/Sun on empty slots.
Is there any thought on how to actually hide and making the slot collapsed?
Question 2:
Is there any way to set the width and height of the slot in Month View?
I had customized Appointment template which shows at least three lines of information for an Appointment. And I don't want the user to always click Expand button to see all the details. Is there any way to always show "Expanded" slot in Month View?
Many many thanks!
Frankie