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

Aggregate in client side grid binding

3 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kia
Top achievements
Rank 1
kia asked on 09 Mar 2014, 06:38 AM
Hi
I have a grid that bind at client-side.
I want to have Sum of some column in footer. What i must to do?

Note: I'm set Aggregate="Sum" in column definition but when i run prj it show only Sum:

here is the code of column definition:
<telerik:GridBoundColumn HeaderText="ColumnTitle" DataField="FieldName" HeaderStyle-Width="15%"
    ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Aggregate="Sum">
</telerik:GridBoundColumn>

and for binding i use this code:
var data = CallWebMethod(WebserviceUrl, Parameter);
var MasterTable = gv.get_masterTableView();
MasterTable.set_dataSource(data);
MasterTable.dataBind();

3 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 12 Mar 2014, 08:40 AM
Hello,

Currently the RadGrid control does not support aggregates with client-side binding. However, we are currently working on improving RadGrid client-side binding and one of the improvements include support client-side binding and aggregates.

Regards,
Antonio Stoilkov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Dominik Gierse
Top achievements
Rank 1
answered on 30 Jan 2019, 08:08 PM

Hello,

we still have the same problem about using the aggregates with clientside-binding. Is there a solution available now? 

0
Eyup
Telerik team
answered on 04 Feb 2019, 07:47 AM
Hi Dominik,

Due to the specificity of client-side binding, it has a lot of limitations which are not present with server-side binding. One of these is grouping, hence aggregates:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-binding/understanding-data-binding/client-side-binding/client-side-binding-specifics#client-side-data-binding-limitations

Therefore, I suggest that you use server-side binding. 

Alternatively, you can check Kendo toolset:
https://demos.telerik.com/kendo-ui/grid/aggregates

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
kia
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Dominik Gierse
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or