GroupByExpression ORM w/ RADGRID

2 posts, 0 answers
  1. Adam
    Adam avatar
    4 posts
    Member since:
    Nov 2006

    Posted 31 Mar 2010 Link to this post

    I need to get a total for a column in my grid and it is not working.  I am using ORM with reverse mapping. 

    Why is it not working?

    I am using the following code in my grid-
         
    <telerik:GridTemplateColumn DataField="Items" HeaderText="Items" FooterText="All items: " 
                        UniqueName="Items" GroupByExpression="Items Group By Items"
                        <ItemTemplate> 
                            <asp:Label ID="lblItems" runat="server" Text='<%#Eval("Items") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadNumericTextBox ID="txtItems" runat="server" Text='<%#Bind("Items") %>'
                            </telerik:RadNumericTextBox> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 

  2. Adam
    Adam avatar
    4 posts
    Member since:
    Nov 2006

    Posted 31 Mar 2010 Link to this post

    Problem solved, I used the ItemDataBound approach documented here-

    http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html



  3. DevCraft banner
Back to Top