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

get selected month in schedule view

1 Answer 45 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
RR
Top achievements
Rank 1
RR asked on 25 Apr 2016, 06:07 AM
How to get the selected month in schedule view. I m using 
<telerik:MonthViewDefinition CalendarWeekRule="FirstFullWeek" FirstDayOfWeek="Monday"
                             GroupFilter="{Binding GroupFilter,Mode=TwoWay}"  />

 

And a breadcrum to navigate between day week and month view

<telerik:RadRibbonButton
                            Text="{Binding LocalizedStrings.CAL_MAIN_WEEK, Source={StaticResource myCustomResources},Converter={StaticResource CommonUpperCaseConverters}}"
                            Margin="0,0,15,0"
                            Style="{StaticResource CalendarNavigateViewButton}"
                            Command="{Binding DC[NavigateToWeekCommand], Mode=TwoWay}"
                            VerticalAlignment="Center"
                            CommandTarget="{Binding ElementName=radScheduleDetails}" Click="RadRibbonButton_Click"
                            Name="weekButton" />

I want to identify which month i was in when I click on weekButton.

Is there a simpler way other than using start/end days or appointment days?

Thank you in advance,

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Apr 2016, 08:06 AM
Hello,

You could use the CurrentDate property of RadScheduleView.  In the following topic you can check how it is set for the different ViewDefinitions:
How to configure the VisibleRange

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ScheduleView
Asked by
RR
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or