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

Need to separate between 1st and last item in rotator

1 Answer 20 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
maha
Top achievements
Rank 1
maha asked on 18 Jun 2010, 01:36 PM
I Need to add an image or line in order to separate between 1st and last image in the rotator.
How can i do that?

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 23 Jun 2010, 02:00 PM
Hi Maha,

You can achieve a similar behavior by using the RadRotator's DataBound event and add an additional item to the RadRotator's Item collection:
void RadRotator1_DataBound(object sender, EventArgs e)
{
    RadRotatorItem separatorItem = new RadRotatorItem();
    separatorItem.Controls.Add(new LiteralControl("SEPARATOR"));
    RadRotator1.Items.Add(separatorItem);
}

I hope this helps.

All the best,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Rotator
Asked by
maha
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or