Height / Width

3 posts, 0 answers
  1. WebGeek
    WebGeek avatar
    39 posts
    Member since:
    Dec 2006

    Posted 15 Jan 2011 Link to this post

    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. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 19 Jan 2011 Link to this post

    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")?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. WebGeek
    WebGeek avatar
    39 posts
    Member since:
    Dec 2006

    Posted 19 Jan 2011 Link to this post

    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.
Back to Top