Home / Community & Support / Knowledge Base / RadControls for ASP.NET AJAX / Scheduler / How to disable the day number link that points to the day represented by the currently selected cell, in MonthView

How to disable the day number link that points to the day represented by the currently selected cell, in MonthView

Article Info

Rating: 5

Article information

Article relates to

 RadScheduler for ASP.NET AJAX

Created by

 Ivana, Telerik

Last modified

 December 13, 2011

Last modified by

 Ivana, Telerik



HOW TO

Disable the day cells' numbers from navigating to the day represented by the currently selected cell.


DESCRIPTION

The day cells in MonthView of the RadScheduler contain a number in the upper left corner which represents a day in the current month. This number is represented by an <a> HTML tag and when clicked it changes the view of the RadScheduler to DayView with the selected cell's day set as current day.
This KB article shows how to prevent the default action of the aforementioned cells' links and disable the currently selected cell's day to be reviewed in DayView. Please refer to the solution section below, to see how it is achieved.

SOLUTION

jQuery:
function pageLoad()
{
    $telerik.$(".rsDateHeader").click(function (e) { return  false; });
}

ASPX:
<telerik:RadScheduler ID="RadScheduler1" SelectedView="MonthView"  runat="server">
  <DayView UserSelectable="false" />
  <WeekView UserSelectable="false" />
  <TimelineView UserSelectable="false" />
</telerik:RadScheduler>


Comments

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.