Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Scheduler > Getting the right month in Monthview

Not answered Getting the right month in Monthview

Feed from this thread
  • Posted on Feb 4, 2012 (permalink)

    Hi.

    In monthview the name of the month that is displayed in the header. This is always right even if the first day in the view is from the previous month.
    I need to get this! 
    VisibleRangeStart.Month gets the previous month, and selecteddate.month looks random.

    I need this because I am creating a MonthPlan as a pdf that starts on the first monday of the Month. This is created from the displayed month. I can find the first monday, but I need to be on the correct month.

    Please help.

    Reply

  • Ivana Ivana admin's avatar

    Posted on Feb 8, 2012 (permalink)

    Hi,

    Try to subscribe to the NavigationComplete event, and get the SelectedDate out of RadScheduler in the event handler. The currently selected month is always accurate in this method when a navigation occurs.
    private DateTime currentDate;
    protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
    {
        currentDate = RadScheduler1.SelectedDate;
    }

    I hope this helps.

    All the best,
    Ivana
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Scheduler > Getting the right month in Monthview
Related resources for "Getting the right month in Monthview"

ASP.NET Scheduler Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial ]