RadBinaryImage doesn't show

5 posts, 0 answers
  1. Beat
    Beat avatar
    9 posts
    Member since:
    Mar 2009

    Posted 27 Jul 2009 Link to this post

    Hello,

    I try to add a RadBinaryImage to my Webform after I clicked a certain row in my RadGrid.
    Funny is that the GridBinaryImageColumn shows the thumbnail of the Image clearly but the RadBinaryImage (big image) won't show anything afterwords...

    Code looks like this:
      RadBinaryImage img = new RadBinaryImage();
      img.DataValue = GetVideoById(videoId).FrontImage;
      img.AutoAdjustImageControlSize = false;
      img.Width = 600;
      img.Height = 300;
      cell = new HtmlTableCell();
      cell.Controls.Add(img);
      row = new HtmlTableRow();
      row.Cells.Add(cell);
      table1.Rows.Add(row);
      placeImg.Controls.Add(table1); -> Placeholder for table

    Thanks for help!
    Beat
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 28 Jul 2009 Link to this post

    Hi Beat,

    How and where are you creating the image? What is the type of data passed to the DataValue of the control? Does the control behave in the same manner at your end, when it is not dynamically created?

    Greetings,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Beat
    Beat avatar
    9 posts
    Member since:
    Mar 2009

    Posted 28 Jul 2009 Link to this post

    Hi Yavor,

    Thanks for the reply.
    I'm creating the image right after the user clicked the specific row in the grid (list of dvds). With the dvdId which I read from the selected row I'm gonna load the image (byte[]) from the dvdList and write it to the DataValue of the image.
    B.t.w. the imageControl behaves the same way when I put the control into the aspx-code (non-dynamically).
    Funny though when I add a RadBinaryImageColumn the picture is shown correctly in the grid.

    Thanks,
    Beat
  5. Beat
    Beat avatar
    9 posts
    Member since:
    Mar 2009

    Posted 28 Jul 2009 Link to this post

    Hi Yavor,

    Solved the issue :-) Since my source image file was a tiff file i had to use the BinaryImageTransformationFilter.

    Thanks for your time!
    Beat
  6. Cory Hudson
    Cory Hudson avatar
    12 posts
    Member since:
    Nov 2008

    Posted 28 Jun 2010 Link to this post

    Beat,

    Any chance you can explain further how you went about using the BinaryImageTransformationFilter to achieve your goal?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017