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

radbinaryimage imageurl property

1 Answer 172 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Nazim
Top achievements
Rank 1
Nazim asked on 03 Feb 2011, 11:00 PM
Hi,
Is there any client-side method to set imageurl property of the control at javascript?
Thanks,

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 09 Feb 2011, 10:31 AM
Hello Nazim,

The RadBinaryImage is rendered as an img. In order to implement the desired functionality, I recommend that you find it client-side and set its src property:
ASPX
<telerik:RadBinaryImage ID="RadBinaryImage1"  runat="server" />
Javascript
var img = $get("<%= RadBinaryImage1.ClientID %>");
img.src = "...";

I hope this helps.

Kind regards,
Mira
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
BinaryImage
Asked by
Nazim
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or