scheduler.config.first_hour

Hi,
I moved my scheduler.config.first_hour from the controller code on the server to JS on the client side, to make it dynamic.
It is not working. My calendar starts at 0:00.
Am I missing something ?
Thanks

I have moved forward on this issue, and learned that config parameters need to be set prior to calling init.
Is there a way to render the scheduler from JS code ?
In my view i make a call to @Html.Raw(Model.scheduler.Render())
Is there a way to make a similar call from JS ?

Thanks

Hi,
configuration code should be executed before scheduler is initialized on the client side. As a solution, you can wrap your code with a js function and call this function from server side config:
js:function initialize(){ scheduler.config.first_hour = 8; }cs: scheduler.BeforeInit.Add("initialize()")