Broken Image Showing on RadBinaryImage Rad Control

4 posts, 0 answers
  1. Marlon Santos
    Marlon Santos avatar
    12 posts
    Member since:
    Oct 2009

    Posted 15 Jul 2010 Link to this post

    Hi,

    I have a RadBinaryImage control inside a usercontrol and when the page loads, the image in the control appears "broken". This RadBinaryImage control is inside a usercontrol, which is in turn inside a RadGrid. I have the RadBinaryImage control in another page and it works fine. The only difference is that in the other page I use it in a RadGrid and not inside a usercontrol that is inside a RadGrid. Below are the code snippets.

     

    <telerik:RadGrid ID="RadGridHardware" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="LdsHardware" OnItemCommand="RadGridHardware_ItemCommand" AutoGenerateColumns="False" OnItemCreated="RadGridHardware_ItemCreated" OnPreRender="RadGridHardware_PreRender" OnItemDataBound="RadGridHardware_ItemDataBound"> 
    <MasterTableView DataSourceID="LdsHardware" DataKeyNames="ItemUID">  
        <EditFormSettings EditFormType="WebUserControl" UserControlName="HardwareDetails.ascx"></EditFormSettings>

        </MasterTableView>  
    </telerik:RadGrid> 

     

     

     

    The snippet for the HardwareDetails user control wher the RadBinaryImage resides is below:       

     

     

     

     

    <tr>

    <td style="width: 15%">  

    <label> Image: </label>  

    </td>

    <td style="width: 85%">

    <telerik:RadBinaryImage runat="server" ID="RadBinaryImageView" DataValue='<%# Eval("ImageContent") %>' AutoAdjustImageControlSize="false" Width="125px" Height="125px" ToolTip="" AlternateText="" />

    </td>

    </tr>

     

     

     

    Please help. Thanks.

    Marlon

     

     

     

     

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 19 Jul 2010 Link to this post

    Hello Marlon,

    Unfortunately I'm unable to recreate such behavior using the provided details. I have attached a simple test page please give it a spin, maybe I'm missing something obvious.

    All the best,
    Rosen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marlon Santos
    Marlon Santos avatar
    12 posts
    Member since:
    Oct 2009

    Posted 19 Jul 2010 Link to this post

    Hi Rosen,

    Thanks for you response. Since I am still having this problem, I wanted to submit a zip file with all the pages involved in the probelm but I couldn't, so I submitted a support ticket (Ticket ID: 329491).

    Thanks,

    Marlon.
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 20 Jul 2010 Link to this post

    Hello Marlon,

    Indeed I was able to observed the behavior you have described. In order to minimize memory consumption and improve performance of the control, the actual image data persistence is executed as late as possible (PreRender or Render) in control's lifecycle. However, in your scenario, as the control is not visible, those methods are not executed and the image data is not persisted.

    In order to cover such scenarios, we have added a new property (PersistDataIfNotVisible), which to force data persistence if control is not visible. Therefore please download the next internal build in which this property should be available and give it a try.

    Kind regards,
    Rosen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top