RadBinaryImage: ResizeMode="Fit" doesn't enlarge picture

2 posts, 0 answers
  1. Sérgio
    Sérgio avatar
    9 posts
    Member since:
    Aug 2008

    Posted 12 Mar 2012 Link to this post

    I don't know if it's a bug or it's designed to behave like this.

    I've a RadBinaryImage defined like this:
    <telerik:RadBinaryImage ID="radBinaryImageTester" runat="server" Width="600px" Height="600px" ResizeMode="Fit" AutoAdjustImageControlSize="true" />

    On code-behind I populate the control with a byte array image:
    byte[] foto = ....; // image bytes

    radBinaryImageTester.DataValue = foto;
    radBinaryImageTester.DataBind();


    My goal is to fill the maximum area of the RadBinaryImage. When the foto is larger than 600x600, the control resizes it to fit in. But when the image with smaller (example: 300x200), it shows only the original size. There's a way to enlarge it to 600x400?
  2. Sérgio
    Sérgio avatar
    9 posts
    Member since:
    Aug 2008

    Posted 14 Mar 2012 Link to this post

    Resolved (my mistake).
    It was a HTML problem.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top