You can achieve the desired effect by adding empty items to the RadRotator, as you correctly guessed. In order to ensure that the rotator will start over after the last blank item is displayed, you don't need to trigger the rotation manually. Just verifying that the property WrapFrames
is set to true
will be enough.
My suggestion is to add the empty items on the code-behind, since items inserted via the client-side property addRotatorItem
will not exist in the rotator's items collection on the server. So, on the server-side you can add three instances of the RadRotatorItem
class at the end of the Items
collection of the RadRotator, so that the edge gap has the height of the rotator's viewport.
In order to demonstrate the suggested approach, I have attached a sample project to this post. Please use it as a basis for your further development.
I hope the provided solution meets your requirements. Feel free to contact us again, should you encounter more problems.
All the best,
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>