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

Rotator Height Problem

7 Answers 94 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
srikanth sapelly
Top achievements
Rank 1
srikanth sapelly asked on 27 Jul 2009, 10:47 AM
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.

7 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 29 Jul 2009, 10:20 AM
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.
0
Jason Boland
Top achievements
Rank 1
answered on 27 Aug 2009, 11:19 PM
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.
0
Fiko
Telerik team
answered on 01 Sep 2009, 05:22 AM
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.
0
srikanth sapelly
Top achievements
Rank 1
answered on 08 Feb 2010, 12:29 PM
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
0
Fiko
Telerik team
answered on 11 Feb 2010, 08:51 AM
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.
0
El
Top achievements
Rank 1
answered on 09 Dec 2010, 04:45 PM

[quote]

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

[/quote]

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. 

0
Fiko
Telerik team
answered on 14 Dec 2010, 05:23 PM
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.
Tags
Rotator
Asked by
srikanth sapelly
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Jason Boland
Top achievements
Rank 1
srikanth sapelly
Top achievements
Rank 1
El
Top achievements
Rank 1
Share this question
or