get selected month in schedule view

2 posts, 0 answers
  1. RSquired
    RSquired avatar
    12 posts
    Member since:
    Apr 2012

    Posted 25 Apr Link to this post

    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,

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Apr Link to this post

    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.
  3. DevCraft banner
Back to Top