I took your example from Grid/Herarchy With Templates, other than the database fields being different the only change I made was to replace:
this
with this:
I need to retrieve the image from the database.
The first image is correct, but all images after that fail. When I modify the PreRender to loop through each item and expand each item it works fine, for the first page (the second page is all empty images).
I have a feeling this is going to be a dumb mistake by me, please help.
Here is what it looks like:
this
<img src='<%# Page.ResolveUrl("~/Grid/Examples/Hierarchy/NestedViewTemplate/Img/") + (Container.FindControl("Label1") as Label).Text %>.jpg' alt="Customer Image" /> |
with this:
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource4"> |
<ItemTemplate> |
<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" |
DataValue='<%#Eval("Avatar") %>' Width="90px" Height="110px" ResizeMode="Fit"/> |
</ItemTemplate> |
</asp:DataList> |
I need to retrieve the image from the database.
The first image is correct, but all images after that fail. When I modify the PreRender to loop through each item and expand each item it works fine, for the first page (the second page is all empty images).
I have a feeling this is going to be a dumb mistake by me, please help.
Here is what it looks like: