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

Set RadRotator Height with javascript

2 Answers 99 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Vance Smith
Top achievements
Rank 1
Vance Smith asked on 02 Mar 2010, 08:31 PM

Hello,

I want to set the RadRotator ItemHeight from javascript (window.innerWidth). 

 

Do you have any ideas?

Thanks,
Vance

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Mar 2010, 07:16 AM
Hi vance,

Use the setSize() method in order to customize the size of the editor control.

JavaScript:
 
<script type="text/javascript"
    function SetHeight() { 
        var editor = $find("<%= RadEditor1.ClientID %>"); 
        editor.setSize(900,900); // Sets width and height 
    } 
</script> 
Also take a look at the documentation on important client side methods and properties.
Getting familiar with Client-Side API

Hope this helps,
Shinu.
0
Fiko
Telerik team
answered on 05 Mar 2010, 10:32 AM
Hello Vance,

I do not recommend you to change the size of the RadRotator control dynamically on the client. This scenarios is not supported by the control and changing the size (on the client) may cause some unexpected behaviors, like unsynchronized rotator items.

Sincerely yours,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Rotator
Asked by
Vance Smith
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or