Disable back button in RadScheduler

5 posts, 0 answers
  1. Mohamed
    Mohamed avatar
    6 posts
    Member since:
    Nov 2010

    Posted 02 May 2011 Link to this post

    Dear All
    I'm using RadScheduler and I want to Disable back button in the scheduler so only the forward button is enabled
    Thanks,
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 May 2011 Link to this post

    Hi Mohamed,

    You can disable the back button by this Css setting:

    .rsPrevDay
            {
                visibility: hidden;
            }

    Hope this helps.

    Greetings,
    Veronica Milcheva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Mohamed
    Mohamed avatar
    6 posts
    Member since:
    Nov 2010

    Posted 02 May 2011 Link to this post

    Thanks Veronica
    it works with me but I found functionality that let the user to go back in the scheduler, It is the button beside today link that display a calender and the user can select a day before today so could you give me a solution to disable selection of previous day or disable this button at all to prevent the user from going back in the scheduler
    Thanks again
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 05 May 2011 Link to this post

    Hi Mohamed,

    Yes, I understand your requirement. You can subscribe to the OnNavigationCommand server-side event and check whether the command value is NavigateToPreviousPeriod. In that case you can cancel the event. Here's the code for this:

    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e) 
        if (e.Command == SchedulerNavigationCommand.NavigateToPreviousPeriod && RadScheduler1.SelectedView == SchedulerViewType.DayView)  
            e.Cancel = true
    }

    Hope this helps.

    Kind regards,
    Veronica Milcheva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Mohamed
    Mohamed avatar
    6 posts
    Member since:
    Nov 2010

    Posted 05 May 2011 Link to this post

    Thanks Veronica it works
Back to Top