This is a migrated thread and some comments may be shown as answers.

Disable back button in RadScheduler

4 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mohamed
Top achievements
Rank 1
Mohamed asked on 02 May 2011, 10:53 AM
Dear All
I'm using RadScheduler and I want to Disable back button in the scheduler so only the forward button is enabled
Thanks,

4 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 02 May 2011, 11:56 AM
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.

0
Mohamed
Top achievements
Rank 1
answered on 02 May 2011, 01:58 PM
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
0
Veronica
Telerik team
answered on 05 May 2011, 08:57 AM
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.

0
Mohamed
Top achievements
Rank 1
answered on 05 May 2011, 09:30 AM
Thanks Veronica it works
Tags
Scheduler
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Mohamed
Top achievements
Rank 1
Share this question
or