I have a RadListView that is populated from a database. It displays data in a grid format. The RadListView contains paging and has the OnNeedDataSource property set that is used to populate the RadListView with data. PLease see below for the code.
<telerik:RadListView ID="RadListView1" runat="server"
ItemPlaceholderID="ProductsContainer" DataKeyNames="ProductId" AllowPaging="true" PageSize="12"
OnItemCommand="RadListView1_ItemCommand" OnNeedDataSource="RadListView1_NeedDataSource">
<LayoutTemplate>
<fieldset id="FieldSet1" style="border: none; padding: 0px;">
<asp:PlaceHolder ID="ProductsContainer" runat="server"></asp:PlaceHolder>
<div style="clear: both">
</div>
<div style="border-top: dashed 0px #CACACA; padding-top: 30px;">
<div style="float: left; margin-left: 0%;">
<asp:Button runat="server" ID="btnFirst" CommandName="Page" CommandArgument="First"
Text="<<" Enabled="<%#Container.CurrentPageIndex > 0 %>" CssClass="Button_Grid_Pager"></asp:Button>
<asp:Button runat="server" ID="btnPrev" CommandName="Page" CommandArgument="Prev"
Text="<" Enabled="<%#Container.CurrentPageIndex > 0 %>" CssClass="Button_Grid_Pager"></asp:Button>
<span style="vertical-align: middle; line-height: 22px; display: inline-block;"> Page
<%#Container.CurrentPageIndex + 1 %>
of
<%#Container.PageCount %></span>
<asp:Button runat="server" ID="btnNext" CommandName="Page" CommandArgument="Next"
Text=">" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" CssClass="Button_Grid_Pager"></asp:Button>
<asp:Button runat="server" ID="btnLast" CommandName="Page" CommandArgument="Last"
Text=">>" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" CssClass="Button_Grid_Pager"></asp:Button>
</div>
<div style="border: none; padding-top: 2px;">
<span style="vertical-align: middle; font-weight: normal; line-height: 22px; padding-left: 15px;">Items per page: </span>
<telerik:RadComboBox runat="server" ID="cmbPageSize"
OnSelectedIndexChanged="cmbPageSize_SelectedIndexChanged"
AutoPostBack="true" Width="60px" Skin="Default"
SelectedValue="<%#Container.PageSize %>">
<Items>
<telerik:RadComboBoxItem Text="4" Value="4"></telerik:RadComboBoxItem>
<telerik:RadComboBoxItem Text="12" Value="12"></telerik:RadComboBoxItem>
<telerik:RadComboBoxItem Text="36" Value="36"></telerik:RadComboBoxItem>
<telerik:RadComboBoxItem Text="100" Value="100"></telerik:RadComboBoxItem>
 
</Items>
</telerik:RadComboBox>
</div>
</div>
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<fieldset class="item">
<asp:Panel ID="ItemContainer" runat="server">
<asp:ImageButton ID="imgbtnProductDetails" runat="server" ImageUrl='<%# "prodimages/" & Eval("ProdRef") & "-1_Grid.jpg"%>'
AlternateText='<%# Eval("ImageAltText") %>' Width="240px"
CommandName="SelectProduct" CommandArgument='<%# Eval("ProductId")%>' Enabled='<%# IIf(Eval("IsVoucher") = True, False, True)%>' />
</asp:Panel>
</fieldset>
</ItemTemplate>
</telerik:RadListView>
I want to know how I can, dynamically (code behind) always display an image in item position / grid position 0 in the RadListView, so that it is always displayed on every page, in the same position, of the RadListView....for example see below where (X) is where I want to display the image on every page...
X......... item1.....item2
item3....item4.....item4
item6....item7.....item8
Thanks for your time.