How to set RadScheduler DayStartTime in clinet side

6 posts, 0 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 02 Oct 2012 Link to this post

    Hi All,

    I want to RadScheduler DayStartTime in client side like 9:30. i am not sure how to Set the timing in Client Side.

    Please let me know is it possible or not?


    Thanks in Advance,
    Dhamu,
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2033 posts

    Posted 02 Oct 2012 Link to this post

    Hello Dhamodharan,

    Setting or modifying RadScheduler  DayStartTime property  is not support on client-side. A possible workaround would be to use this KB that demonstrates how to set special days or disable time slots in RadScheduler. This way you are able to make certain time ranges unavailable for adding appointments.

    I hope that this information was helpful .

    Regards,
    Boyan Dimitrov
    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.
  3. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 02 Oct 2012 Link to this post

    Hi Boyan Dimitrov,

    Thanks for your reply. But i changed all functionality to Client side. I want to be done DayStartTime only for Performance. i want to show only client's open time otherwise it will create performance problem. sofar i have done all functionalities in client side. this is only i need to be add. please let me know if it is possible otherwise nothing meaning sofar what i have done. that is why i am asking.

    i used following code. but the output not like the same

     $find("ctl00_ContentPlaceHolder1_rsWorkHours").get_weekViewSettings().dayStartTime = 32400000;
      $find("ctl00_ContentPlaceHolder1_rsWorkHours").rebind(); 

    32400000 should be refer 9:00AM. but it is not shows like the same. Please check and let me know if you have any ideas.

    Thanks,
    Dhamu.

     

     

     


  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2033 posts

    Posted 05 Oct 2012 Link to this post

    Hello Dhamodharan,

    You could modify the DayViewSettings using the following approach:

                     var scheduler = $find('<%=RadScheduler1.ClientID %>');
                var dayStartObj = scheduler.get_dayViewSettings();
                dayStartObj.dayStartTime = your start time goes here;
                dayStartObj.dayEndTime = your end time goes here;
                
                scheduler.set_dayViewSettings = dayStartObj;
                     
                scheduler.repaint();

    Please keep in mind that this will work using WebService binding.

    Kind regards,
    Boyan Dimitrov
    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.
  5. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 08 Oct 2012 Link to this post

    Hi Boyan Dimitrov,

    Thanks for your reply.

    I am using given code. but i gave StartTime 32400000 like 9.00AM. but that scheduler not setting this time. i don't know how to calculate and set that time for Scheduler. Please check and let me know.



    Thanks in Advance,
    Dhamodharan.
  6. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2033 posts

    Posted 11 Oct 2012 Link to this post

    Hello Dhamodharan,

    We have inspected the issue once again and came to conclusion that this scenario is not supported. Unfortunately setting RadScheduler DayViewSettings is not supported on the client-side and no workarounds are available using JavaScript. Please excuse us for this limitation of our control.   


    Regards,
    Boyan Dimitrov
    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.
Back to Top