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

Height / Width

2 Answers 70 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
WebGeek
Top achievements
Rank 1
WebGeek asked on 15 Jan 2011, 08:44 PM
I have a jquery control that requires the width of the image to be outputted.  Currently - radbinaryimage displays the height/width in a style like so:
style="height:33px;width:50px;".  Is there anyway to have it output the width like a normal control
<img id="Photos1_lvPhotoSliderList_rbiPhotosList_9" src="Telerik.Web.UI.WebResource.axd?imgid=2003722f26874665b53a5b8d4f150506&amp;type=rbi" alt="6"  height="33px" width="50px" />

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 19 Jan 2011, 02:12 PM
Hello medicalwebgeek,

I don't see that happening, not even the standard asp:Image control renders like that. How does your jQuery control access the image's width? Does it use the width() function or attr("width")?
0
WebGeek
Top achievements
Rank 1
answered on 19 Jan 2011, 03:28 PM
You are right - I realized that the jquery was trying to preload the images and this was causing my problems.  The images would preload correctly if they were on disk, but mine are being pulled back from the db. 

Thanks.
Tags
BinaryImage
Asked by
WebGeek
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
WebGeek
Top achievements
Rank 1
Share this question
or