remove today link in monthview

6 posts, 0 answers
  1. Dan
    Dan avatar
    32 posts
    Member since:
    Feb 2010

    Posted 15 Nov 2011 Link to this post

    How do I remove the "today" link in monthview?

    Also if anyone knows how to make month display full month (November instead of Nov) that would be cool too.

    Thanks,
    Dan
  2. Paul
    Paul avatar
    114 posts
    Member since:
    May 2009

    Posted 15 Nov 2011 Link to this post

    Hi Dan,
                To make the Month Display full month change the MonthView-HeaderDateFormat property to MMMM, yyyy
  3. Dan
    Dan avatar
    32 posts
    Member since:
    Feb 2010

    Posted 15 Nov 2011 Link to this post

    Paul, thanks for that! Now if removing the today link is as straightforward I will be laughing.
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Nov 2011 Link to this post

    Hi Dan,

    Here is one possible solution:
    protected void Page_Load(object sender, EventArgs e)
       {
           if (RadScheduler1.SelectedView == SchedulerViewType.MonthView)
               RadScheduler1.Localization.HeaderToday = String.Empty;
           else
               RadScheduler1.Localization.HeaderToday = "today";
       }
     
       protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
       {
           if (e.Command == SchedulerNavigationCommand.SwitchToMonthView)
               RadScheduler1.Localization.HeaderToday = String.Empty;
           else
               RadScheduler1.Localization.HeaderToday = "today";
     
       }


    Regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Dan
    Dan avatar
    32 posts
    Member since:
    Feb 2010

    Posted 17 Nov 2011 Link to this post

    That works perfect Peter, thanks. Where could I reference this in API documentation?
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Nov 2011 Link to this post

    Hello Dan,

    Here is the help topic on Translating strings - http://www.telerik.com/help/aspnet-ajax/scheduler-localization-translating-strings.html


    Best wishes, Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top