Hello Ricardo,
The proposed solution was for
RadGrid, excuse me for the confusion.
You can find an appropriate example for
RadCalendar below:
<script type="text/javascript" language="javascript"> |
var allow; |
function DateSelecting(sender, args) |
{ |
if (!allow) |
args.set_cancel(true); |
} |
|
function AllowClick(sender, args) |
{ |
allow = true; |
} |
|
function DateClick(sender, args) |
{ |
allow = false; |
} |
</script> |
<telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" |
ForeColor="Black" Style="border-color: #ececec"> |
<ClientEvents OnDateSelecting="DateSelecting" OnDateClick="DateClick" OnRowHeaderClick="AllowClick" |
OnColumnHeaderClick="AllowClick" /> |
</telerik:RadCalendar> |
I hope this helps.
Regards,
Daniel
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.