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