I have list of products displayed in a RadListView. I would like to group those products by Category (where Category is a property of the Product class)
Is that even possible using RadListView?
In your samples, you only have basic grouping using a predefined number of items per group.
Thanks,
Gary
Here is the code I'm using:
Is that even possible using RadListView?
In your samples, you only have basic grouping using a predefined number of items per group.
Thanks,
Gary
Here is the code I'm using:
<telerik:RadListView ID="listViewProducts" runat="server" onneeddatasource="listViewProducts_NeedDataSource" ItemPlaceholderID="ProductsHolder" DataKeyNames="ProductCatalogID" > <AlternatingItemTemplate> <div class="rlvA" style="height: 160px; width: 200px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; padding-left: 5px;"> <table cellpadding="1" cellspacing="1" border="0" width="200"> <tr style="height:60px;"> <td class="header4" ><%#Eval("Products")%></td> </tr> <tr> <td align="center"><%--<asp:ImageButton ID="ImageButton2" ImageUrl="~/Images/Product.jpg" PostBackUrl='<%# Eval("Link")%>' runat="server" target="_blank" />--%> <asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/Product.jpg" runat="server" OnClientClick=<%# "window.open('" + Eval("Link") + "','',''); return false;" %> /></td> </tr> </table> </div> </AlternatingItemTemplate> <ItemTemplate> <div class="rlvI" style="height: 160px; width: 200px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; padding-left: 5px;"> <table cellpadding="1" cellspacing="1" border="0" width="200"> <tr style="height:60px;"> <td class="header4"><%#Eval("Products")%></td> </tr> <tr> <td align="center"><asp:ImageButton ID="ImageButton3" ImageUrl="~/Images/Product.jpg" runat="server" OnClientClick=<%# "window.open('" + Eval("Link") + "','',''); return false;" %> /></td> </tr> </table> </div> </ItemTemplate> <EmptyDataTemplate> <div class="RadListView RadListView_Windows7"> <div class="rlvEmpty"> There are no items to be displayed.</div> </div> </EmptyDataTemplate> <LayoutTemplate> <div style="width:1150px;" class="RadListView RadListViewFloated RadListView_Windows7"> <div class="rlvFloated rlvAutoScroll"> <div id="Div1" runat="server"> <div id="ProductsHolder" runat="server"> </div> </div> </div> </LayoutTemplate> </telerik:RadListView>