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

Broken Image Showing on RadBinaryImage Rad Control

3 Answers 106 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Marlon Santos
Top achievements
Rank 1
Marlon Santos asked on 15 Jul 2010, 07:00 PM

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

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Jul 2010, 09:06 AM
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
0
Marlon Santos
Top achievements
Rank 1
answered on 19 Jul 2010, 04:33 PM
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.
0
Rosen
Telerik team
answered on 20 Jul 2010, 01:53 PM
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
Tags
BinaryImage
Asked by
Marlon Santos
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Marlon Santos
Top achievements
Rank 1
Share this question
or