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

[Solved] Total number of the rad grid columns

3 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rks
Top achievements
Rank 1
rks asked on 18 May 2009, 09:34 PM
Hi,

I am using a Rad grid with no paging.
All the columns in the grid are GridBoundColumns
I want to have the total number of these records at the bottom or on top of the grid.
Can you help me to achieve this

Thanks,
RKS

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 May 2009, 03:56 AM
Hello,

Try setting the Footer for displaying the total number of records in footer.

ASPX:
 
<Columns> 
<telerik:GridBoundColumn DataField="Name" Aggregate="Count" FooterText="Total number of Records  :" HeaderText="Name" SortExpression="Name" UniqueName="Name"></telerik:GridBoundColumn> 
  . . . 
</Columns> 

Thanks,
Shinu.
0
rks
Top achievements
Rank 1
answered on 19 May 2009, 01:47 PM
Hi,

I am unable to see the method: Aggregate
I am using a  <rad:GridBoundColumn > </rad:GridBoundColumn>
and not a <telerik:GridBoundColumn ></telerik:GridBoundColumn>

Thanks,
RKS
0
Sebastian
Telerik team
answered on 19 May 2009, 02:37 PM
Hi rks,

Declarative footer aggregates are supported in the ASP.NET AJAX version of RadGrid:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/aggregates/defaultcs.aspx

If you intend to use its ASP.NET predecessor, consider calculating the aggregates manually as explained in this help topic (see the paragraph named "Programmatic solution").

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
rks
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
rks
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or