This is a migrated thread and some comments may be shown as answers.

Multiple Footer Records

3 Answers 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avo
Top achievements
Rank 1
Avo asked on 20 Jul 2015, 01:38 PM

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

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Jul 2015, 03:54 PM
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
0
Avo
Top achievements
Rank 1
answered on 22 Jul 2015, 07:07 PM

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

0
Konstantin Dikov
Telerik team
answered on 27 Jul 2015, 08:12 AM
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
Tags
Grid
Asked by
Avo
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Avo
Top achievements
Rank 1
Share this question
or