The items in the RadRotator should be available when the OnClientLoad
client-side event is fired. Please elaborate on the approach that you used for data-binding the control and its location on the page, e.g. if it is in another control. A sample project that isolates the problem will also be useful for pinpointing its cause.
As for centering the displayed image in the rotator item's template, you can achieve this by adding the following CSS code to your page:
.RadRotator .rrItem div[id^=
/* the item height is used */
/* the item width is used */
Note that the values of the properties ItemWidth
should be used in the style above, RadRotator1
in the CSS selector should be replaced with the id of your rotator. Also, the code above is designed for a rotator that contains only a single image in an item. If the layout of your items is more complex, you will have to modify the CSS accordingly.
All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed