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

not able to find RadBinaryImage in the RadRotator

1 Answer 47 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
eran
Top achievements
Rank 1
eran asked on 26 Jun 2011, 05:56 AM
I have a RadBinaryImage in the RadRotator itemTemplate. Is there any way i can find the radBinaryimage in the radrotator ? so that i can control the imageurl.

i try :

Dim image as RadBinaryImage = RadRotator1.findControl("RadBinaryImage1")

but it doesnt work.


Regards,
KEA

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 28 Jun 2011, 02:45 PM
Hello Eran,

You can get the RadBinaryImage object in code-behind by accessing RadRotator's Items collection and then the exact item by the Item property (specifying the index of the rotator item).

Below is an example of getting the RadBinaryImage from the first Item of RadRotator:

Dim image As RadBinaryImage = RadRotator1.Items.Item(0).FindControl("RadBinaryImage1")

In the attached sample project you can examine the solution I suggested.

Greetings,
Slav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Rotator
Asked by
eran
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or