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

Rotatar error on dynamic width

1 Answer 78 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Tony Polad
Top achievements
Rank 1
Tony Polad asked on 31 Jul 2008, 12:59 AM
Hi,

The rotator is inside a splitter.

I set the rotator width = "95%" and it come out with error.
But, if I set the rotator width with fix number ie. width = "400px", its fine.

any work around ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 01 Aug 2008, 01:41 PM
Hi Susanto Siman,
This behavior is by design - the way we have implemented RadRotator for ASP.NET AJAX - to keep the rotator parts - buttons/viewport, always in pixels, led to the decision that the rotator should not support setting these properties in percents. At least for the time being.

Generally, you can implement this yourself, by calculating the correct size of the rotator every time its parent RadPane resizes, but the set_width and set_height client methods of the RadRotator are not yet implemented and you can only set the Width/Height of the control on the server. That is why I cannot offer you a workaround for the time being.

Greetings,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Rotator
Asked by
Tony Polad
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or