not able to find RadBinaryImage in the RadRotator

2 posts, 0 answers
  1. eran
    eran avatar
    14 posts
    Member since:
    Jul 2010

    Posted 26 Jun 2011 Link to this post

    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.

  2. Slav
    Slav avatar
    1351 posts

    Posted 28 Jun 2011 Link to this post

    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.

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top