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

How to set RadScheduler DayStartTime in clinet side

5 Answers 87 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 02 Oct 2012, 09:26 AM
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,

5 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Oct 2012, 03:37 PM
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.
0
Dhamodharan
Top achievements
Rank 1
answered on 02 Oct 2012, 03:52 PM
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.

 

 

 


0
Boyan Dimitrov
Telerik team
answered on 05 Oct 2012, 03:41 PM
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.
0
Dhamodharan
Top achievements
Rank 1
answered on 08 Oct 2012, 07:56 AM
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.
0
Boyan Dimitrov
Telerik team
answered on 11 Oct 2012, 08:04 AM
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.
Tags
Scheduler
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Dhamodharan
Top achievements
Rank 1
Share this question
or