I am using radrotator in my application , how can i change the border color or color of the rotator selected item from asp.net c# code behind , can i expect some help on this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can change the border of the RadRotator control and its items via additional CSS classes:
The internal CSS class rrClipRegion can be overridden in order to set a new color for the rotator control’s border:
You can set a default border color for the RadRotator’s items via CSS and then you can change it from the code behind by defining a CSS class with new border color, as shown below:
The RadRotator markup:
The styles, needed for applying the borders:
Changing the item’s border color from the code-behind:
Note that I have set the InitialItemIndex property of the rotator control in order to preserve the current item through postback. Also, the example is designed for images with size 150×113, so if different sizes are being utilized you should change the properties Width, Height, ItemWidth, ItemHeight accordingly.