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

Career Totals at Bottom of the grid.

4 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 2
Brad asked on 15 Feb 2012, 05:06 PM
Hello Everyone,

In my grid I have a a career row that I would like to either insert into the footer, or dynamically move to the bottom of the grid after a sort. The career totals that I have to calculate are complex in nature and I am not sure I can do the calculations in the footer. Any advice would be much appreciated.

Thanks in Advance,
Brad

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Feb 2012, 05:12 AM
Hello,

Check the following help documentation which expalins more about this.
Totals in Grid Footers.

Thanks,
Princy.
0
Brad
Top achievements
Rank 2
answered on 16 Feb 2012, 06:50 PM
Yes I have visited that page, but I can't use those functions as they will not accurately represent the totals.

Is there any way to take a GridDataItem Row and insert it into the GridDataFooterItem?

Or

Is there any way to when sorting to move a GridDataItem to the last row of the grid?

Thanks in advance for any help.
0
Accepted
Tsvetina
Telerik team
answered on 21 Feb 2012, 10:36 AM
Hi Brad,

If using the footer is not an option for you, you can try the other suggestion from my reply to your support ticket with the same question:

Consider using a CommandItemTemplate displayed only at the bottom of the grid. For this purpose you can: 
1) Specify this template in your MasterTableView:
<MasterTableView CommandItemDisplay="Bottom">
    <CommandItemTemplate>
         ..........
    </CommandItemTemplate>
</MasterTableView>

2) Set MasterTableView-CommandItemDisplay="Bottom" 3
3) You can perform your calculations and populate the template in the PreRender event of RadGrid. To access the CommanItem there, you can use the GetItems method:
http://www.telerik.com/help/aspnet-ajax/grid-using-getitems-getcolumn-methods.html

If you have further questions or concerns, please post in the support thread, so that we can avoid duplicate posts on the same issue.

All the best,
Tsvetina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Brad
Top achievements
Rank 2
answered on 21 Feb 2012, 04:08 PM
Yes thank you for that suggestion. That worked for me.
Tags
Grid
Asked by
Brad
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Brad
Top achievements
Rank 2
Tsvetina
Telerik team
Share this question
or