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

Width and Height

1 Answer 74 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Clark
Top achievements
Rank 1
Clark asked on 17 Feb 2011, 09:58 PM
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" />


Thanks!

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 21 Feb 2011, 03:05 PM
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

Regards,
Vasil
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!
Tags
BinaryImage
Asked by
Clark
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or