Change the value of the FrameDuration property depending on the content of the currently shown item
|
Article relates to
|
RadRotator for ASP.NET AJAX
|
|
Created by
|
Fiko
|
|
Last modified
|
September 08, 2010
|
|
Last modified by
|
Fiko
|
HOW TO
Change the value of the FrameDuration property depending on the content of the currently shown item. This is especially useful when you show text content and the texts inside the RadRotator's items have different lengths.
DESCRIPTION
The example shows how to use the RadRotator's client-side API in order to change its behavior dynamically. The provided code changes the value of the FrameDuration property based on the length of the text which is currently shown in RadRotator control.
SOLUTION
The OnClientItemShown event is used in order to get the text shown inside the RadRotator control:
- First attach a handler to the event:
- Implement the handler:
- Th
egetWrapperElement method returns the DIV that wraps the content of the currently shown RadRotator item:
Comments
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.