Rotator Height Problem

8 posts, 0 answers
  1. srikanth sapelly
    srikanth sapelly avatar
    7 posts
    Member since:
    Jul 2009

    Posted 27 Jul 2009 Link to this post

    Hi,
             I have Radrotator placed inside my sharepoint webpart. The datasource for the Radrotator contains the different sizes of images.
    for example one image can be width of 200 and height of 300px, and other can be width of 100 and height of 250px. So i dont want to specify any specific height to the Radrotator. If i did not mention any height and i can see rotator taking default height as "200Px".
    With this behaviour i'm unable to see the desired output.
    Following two approaches i tried.

    If i set the height>200 px, but still i dont see any change to the image height but there is some gap below the image.
    If i set the height below 200px then the image height  are coming down to 100px.

    So, please help in removing default height of rotator and the rotator height should be the default height of actual image.

    Thanks,
    Srikanth.

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 29 Jul 2009 Link to this post

    Hi Srikanth,

    The RadRotator control does not support such scenario. When you use the control you need to set the same size of all of the items (images in your case) and you need to use fixed values for the Width, ItemWidth, Height, ItemHeight rotator's properties. This restriction is by design, because the rotator control needs to know the Items' size, when it is loaded, in order to determine where an item starts or ends. All of the mentioned properties are important and you need them in order to make the RadRotator control works properly.

    Regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason Boland
    Jason Boland avatar
    10 posts
    Member since:
    Apr 2007

    Posted 27 Aug 2009 Link to this post

    Has anyone come up with a creative way around this?  I think it's pretty common to have different heights in images or content so the heights need to be dynamic.
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 01 Sep 2009 Link to this post

    Hello Jason,

    As I mentioned in my previous reply, the RadRotator control does not support scenarios where the items has different size. This restriction is by design and for the time being we do not plan to change this behavior.

    Best wishes,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. srikanth sapelly
    srikanth sapelly avatar
    7 posts
    Member since:
    Jul 2009

    Posted 08 Feb 2010 Link to this post

    Hi,
      I am using Radrotator, which fetches images from the Sharepoint list and it has the property RotatorType="Slideshow". The radrotator is placed in a sharepoint webpart.  The error i am getting is "Control is null or not an object" on the page load or when i refresh the page, it is working fine if all the images are exist in the sharepoint list, if some images are not present it is throwing the "Control is null or not an object". Suppose if there are 7 images in the sharepoint list, when the page is loaded it is loading all the images for the first iteration, when it comes to last slide ( image 7), throwing "Control is null or not an object"

    Thanks,
    Srikanth
  7. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 11 Feb 2010 Link to this post

    Hi Srikanth,

    I have already posted a reply to your question in this forum thread.

    Regards,
    Fiko
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  8. El
    El avatar
    130 posts
    Member since:
    Dec 2008

    Posted 09 Dec 2010 Link to this post

    Hello Jason,

    As I mentioned in my previous reply, the RadRotator control does not support scenarios where the items has different size. This restriction is by design and for the time being we do not plan to change this behavior.

    Best wishes,
    Fiko
    the Telerik team

    I am not sure you understand the seriousness of your statement. This is a RadRotator limitation and you should take care about it no doubt. The standard adrotator control handles this issue just fine. 

    This scenario is pretty often and you should offer solution for the problem. 

  9. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 14 Dec 2010 Link to this post

    Hello El,

    You can overcome this limitation by explicitly setting the width and height of the RadRotator's ItemTemplate. Please note that all RadRotatorItems should have the same size. More information about how to configure RadRotator control can be found in this help article.


    All the best,
    Fiko
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017