Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Scheduler > Hide and show next and previous arrows in the navigation pane

Not answered Hide and show next and previous arrows in the navigation pane

Feed from this thread
  • Mona avatar

    Posted on Feb 7, 2012 (permalink)

    I would like to know how to hide and show the next and previous arrows in the navigation pane based on requirements. My requirement is a customer can only look at the scheduler for previous month, current month and next month. So if they are in next month view them i should disable to hide the next month arrow in the navigation pane and if they are in previous month view i should hide or disable the previous month arrow in the navigation pane. I searched around but couldn't find a solution for this problem anywhere.

    Reply

  • Plamen Zdravkov Plamen Zdravkov admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello Mona,

     
    You can use the NavigationComplete event and set the appropriate styles to hide the arrows:

    protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
        {
            if (RadScheduler1.SelectedDate.Month == DateTime.Now.Month)
            {
                RadScheduler1.CssClass = "show";
            }
            else if (RadScheduler1.SelectedDate.Month == DateTime.Now.AddMonths(1).Month)
            {
                RadScheduler1.CssClass = "hideNext";
            }
            else if (RadScheduler1.SelectedDate.Month == DateTime.Now.AddMonths(-1).Month)
            {
                RadScheduler1.CssClass = "hidePrev";
            }
        }
    /** Move link to the right */
          .show .rsNextDay,.show .rsPrevDay
          {
              display:inline !important;
              }
           
          .hideNext .rsNextDay
          {
              display: none !important;
          }
          .hidePrev .rsPrevDay
          {
               display: none !important;
              }


    Hope this will help.

    Kind regards,
    Plamen Zdravkov
    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

  • Mona avatar

    Posted on Feb 10, 2012 (permalink)

    Thanks a lot!! It was very helpful.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Scheduler > Hide and show next and previous arrows in the navigation pane
Related resources for "Hide and show next and previous arrows in the navigation pane"

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