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

Setting height/width of scheduler using javascript

1 Answer 86 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Trent Devers
Top achievements
Rank 1
Trent Devers asked on 23 May 2011, 07:12 AM
Hi,

Is there a way to set the height/width of the scheduler using javascript on page load / resize the scheduler when the window is resized?

Thanks

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 23 May 2011, 05:45 PM
Hi Trent,

I tried to do this a while ago while playing with the RadScheduler. I don't think there is a way to adjust the control from the client-side. I think you can adjust the width from the server-side PreRender event for the RadScheduler. The control will need to re-render after the window is resized, so that seems like a logical place to change the width. Server-side changing of the width is trivial.

RadScheduler1.Width = Unit.Pixel(700);

Hope this helps!
-Gimmik
Tags
Scheduler
Asked by
Trent Devers
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or