Multiple Footer Records

4 posts, 0 answers
  1. Avo
    Avo avatar
    4 posts
    Member since:
    Oct 2012

    Posted 20 Jul 2015 Link to this post

    Hi,

    We are using a RadGrid control and wanted to know if there was a way to display multiple footer records.

    We currently do not have footers turned on in the grid but instead return the total and totals for Applications records in the actual data that we receive in the dataset we get back from querying the database.

    We then color these last 3 records to make them appear like footers on the bottom of the grid. 

    I have attached a screenshot of the grid for reference.

    We noticed that these last 3 records do not behave like true footers when using the filtering capabilities of the grid.

    Please advise if we can achieve this same results by using actual footers in the RadGrid. 

    Thanks!

    Avo

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 22 Jul 2015 Link to this post

    Hello Avo,

    The built-in footer of RadGrid generates a single TR element and there it could not be modified to render multiple rows. Furthermore, the footer will display the calculated aggregates and from the provided screenshot it seems that it could not be used in your scenario.

    Additional information on the columns aggregates could be found in the following help article:

    Best Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Avo
    Avo avatar
    4 posts
    Member since:
    Oct 2012

    Posted 22 Jul 2015 in reply to Konstantin Dikov Link to this post

    Hi Konstantin,

    Thank you for your response.  Is there a custom footer available which can help me achieve the same results I provided in my earlier screen shot?

    Thanks!

    Avo

  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 27 Jul 2015 Link to this post

    Hi Avo,

    Footer templates are available only for template columns, so if you need to customize the entire footer row you might consider using only GridTemplateColumns in your RadGrid:
    <telerik:RadGrid runat="server" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" ShowFooter="true">
        <MasterTableView AutoGenerateColumns="false">
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        value
                    </ItemTemplate>
                    <FooterTemplate>
                        some template
                    </FooterTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    Hope this helps.


    Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top