Set RadRotator Height with javascript

3 posts, 0 answers
  1. Vance Smith
    Vance Smith avatar
    36 posts
    Member since:
    Jun 2012

    Posted 02 Mar 2010 Link to this post


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


    Do you have any ideas?


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Mar 2010 Link to this post

    Hi vance,

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

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

    Hope this helps,
  3. DevCraft R3 2016 release webinar banner
  4. Fiko
    Fiko avatar
    1406 posts

    Posted 05 Mar 2010 Link to this post

    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,
    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.
Back to Top