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

Position of year and month navigation buttons and display tooltips

1 Answer 26 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SUN LAI
Top achievements
Rank 1
SUN LAI asked on 22 Jun 2012, 03:36 AM
My boss would like to place the month and year navigation buttons on the top left conner of scheduler without the datepicker as shown in the attached image, and have tooltips to show the description of the buttons when mouseover the "<<", "<". ">" and ">>" buttons, would you please give me some hints about how to do it?

Thanks !!!
Sun Lai

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Jun 2012, 01:01 PM
Hello Sun,

The navigation pane cannot be customized. However, you can hide it and use RadButton controls instead. Here is a code sample -

telerik:RadButton ID="PreviousYearButton" runat="server" OnClick="PreviousYearButton_Click"
        Text="<<" ToolTip="Previous year">
    </telerik:RadButton>
    <telerik:RadButton ID="PreviousDayButton" runat="server" OnClick="PreviousDayButton_Click"
        Text="<" ToolTip="Previous day">
    </telerik:RadButton>
    <telerik:RadButton ID="NextDayButton" runat="server" OnClick="NextDayButton_Click"
        Text=">" ToolTip="Next day">
    </telerik:RadButton>
    <telerik:RadButton ID="NextYearButton" runat="server" OnClick="NextYearButton_Click"
        Text=">>" ToolTip="Next year">
    </telerik:RadButton>
    <telerik:RadScheduler runat="server" ID="RadScheduler1" ShowNavigationPane="false">
    </telerik:RadScheduler>


protected void PreviousYearButton_Click(object sender, EventArgs e)
   {
       RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddYears(-1);
   }
   protected void PreviousDayButton_Click(object sender, EventArgs e)
   {
       RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddDays(-1);
   }
   protected void NextDayButton_Click(object sender, EventArgs e)
   {
       RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddDays(1);
 
   }
   protected void NextYearButton_Click(object sender, EventArgs e)
   {
       RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddYears(1);
   }

All the best,
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.
Tags
Scheduler
Asked by
SUN LAI
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or