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;
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
0
Hello,
You should also call _adjustHeight (a private method) of RadScheduler to adjust the height of the internal elements according to the external size:
I hope this helps.
Best wishes,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
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.
Just out of curiosity, shouldn't these be outlined in the rad scheduler documentation.
0
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
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
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
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
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
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
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
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
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.
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.