Rad Scheduler Month view issue

2 posts, 0 answers
  1. Mk
    Mk avatar
    2 posts
    Member since:
    Jan 2013

    Posted 01 Mar 2014 Link to this post


    I am using Rad Scheduler Month view and i am getting two problem.First problem is when i click on any date it should be highlight and second when i click on cell ,value of selected cell to be show on aspx page label or any control.

    Please help me on this issue .I am using asp.net and c#.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1966 posts

    Posted 05 Mar 2014 Link to this post


    An easy and convenient way would be to use RadScheduler OnNavigationCommand and cancel it if the user has clicked on the date link. The latter could be achieved by using jQuery mousedown event for that date DOM element and store some value in hidden field that will be used on the server.
    //markup code
    <telerik:RadScheduler runat="server" ID="RadScheduler1" ....
    OnNavigationCommand="RadScheduler1_NavigationCommand" OnClientTimeSlotClick="clientTimeSlotClick">
    <asp:HiddenField ID="hiddenField1" runat="server" />

    function pageLoad() {
                $telerik.$(".rsDateHeader").mousedown(function () {
    //code behind
    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
                if (e.Command == SchedulerNavigationCommand.SwitchToSelectedDay && hiddenField1.Value == "Cancel")
                    e.Cancel = true;
                    hiddenField1.Value = String.Empty;

    As for your second question - you can use the RadScheduler OnClientTimeSlotClick and set the label text as shown in the code snippet below:
    function clientTimeSlotClick(sender, args) {

    In this case we assume that you have a asp:Label control on the page with ID="Label1".

    Boyan Dimitrov

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Back to Top