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

RAD Scheduler - Change Height and Width in Java script

10 Answers 259 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
santosh
Top achievements
Rank 1
santosh asked on 03 Jul 2008, 05:58 AM
Hi,

I am trying to change the height and width of the rads scheduler control in javascript.

Purpose: When the Browser is resized , I want the  rad scheduler also to resize, so that it fits the screen.

Used the following code

var RadScheduler = $find(RadSchedulerID);
document.getElementById(RadSchedulerID).style.width = 800; 
document.getElementById(RadSchedulerID).style.height = 700;

The above code worked for modifying the width of the scheduler but does not affect the height.

Is there a way out?

10 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Jul 2008, 12:42 PM
Hello,

You should also call _adjustHeight (a private method) of RadScheduler to adjust the height of the internal elements according to the external size:

var schedulerElement = $find('<%= RadScheduler1.ClientID %>').get_element(); 
schedulerElement.style.width = "400px"
schedulerElement.style.height = "400px"
Telerik.Web.UI.RadScheduler._adjustHeight('<%= RadScheduler1.ClientID %>'); 
 

I hope this helps.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
santosh
Top achievements
Rank 1
answered on 04 Jul 2008, 12:17 AM
thanks mate that did the trick.

Just out of curiosity, shouldn't these be outlined in the rad scheduler documentation.
0
Peter
Telerik team
answered on 04 Jul 2008, 07:48 AM
Hi Santosh,

Thanks for the suggestion.  _adjustHeight is not a publick method and we do not document those. However, we might upload a KB article about this case.

Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj Nemani
Top achievements
Rank 1
answered on 08 Jul 2008, 02:47 PM
Hello,
This fix does not seem to work for IE6. Can you please confirm that this fix works for IE6
0
Raj Nemani
Top achievements
Rank 1
answered on 08 Jul 2008, 02:54 PM
To be more specific, I just noticed that once you set the height to say 700Px and then say trying to reduce it to 400px (in a typical toggle functionality), will not work in IE6.  Increasing to 700px works fine but decreasing to 400px does not work.

Thanks for your help
Raj
0
santosh
Top achievements
Rank 1
answered on 09 Jul 2008, 12:48 AM
Hi Raj

My Application chiefly works on IE7 and using the _AdjustHeight did the trick man.

But i tried it of IE6 and it adjusts the width of the rad scheduler but not the height.

I have reopend this thread so that the telerik team can provide some insight to this problem.


santosh
0
Peter
Telerik team
answered on 09 Jul 2008, 12:20 PM
Hello guys,

Thanks for your observations. We tested this case under IE6 and we were able to observe the issue too. I will notify our UX team about it and they will try to find a solution.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter
Telerik team
answered on 11 Jul 2008, 03:27 PM

Here is some more update on this case. Our development and UX team reviewed your request and decided that RadScheduler should be able to maintain height of 100% on window.resize as a built-in feature. I have logged it and we will implement it for Q2 2008 in July 22.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
santosh
Top achievements
Rank 1
answered on 24 Jul 2008, 04:29 AM

Hi Peter,
                Can you update me regarding the lastest Q2 version which was due to be released on 22nd july 08

thanks

santosh

0
Dimitar Milushev
Telerik team
answered on 29 Jul 2008, 03:24 PM
Hi Santosh,

Please excuse me for the delayed answer.

The Q2 2008 release is live for a few days now, but unfortunately this feature is not available in this release. It has been postponed for the Q2 2008 SP1 as it turned out it needed further testing to ensure that it meets our quality standards.

Kind regards,
Dimitar Milushev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
santosh
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
santosh
Top achievements
Rank 1
Peter
Telerik team
Raj Nemani
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Share this question
or