Width and Height

2 posts, 0 answers
  1. Clark
    Clark avatar
    26 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    Is there a way to force the size of the BinaryImage? I set Width and Height and it doesn't seem to work. I have users uploading images in a Content management system and I don't want to have images of all different sizes on the page, it messes up my CSS.

    control code
    <telerik:RadBinaryImage ID="rbiSpeaker" DataValue='<%#Eval("Image") %>' ToolTip='<%#Eval("Name") %>' Width="180px" Height="234px" AutoAdjustImageControlSize="true" AlternateText='<%#Eval("Name") %>' CssClass="speaker-photo" runat="server" />

  2. Vasil
    Vasil avatar
    1604 posts

    Posted 21 Feb 2011 Link to this post

    Hi Clark,

    Try to set ResizeMode property of the RadBinaryImage to "Fit". By default this property is "None" and because of this the image is not resized.
    You will find more information here: http://www.telerik.com/help/aspnet-ajax/radbinaryimage.html

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top