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

Custom grid summary based off selected rows

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 14 Dec 2016, 10:26 AM

Is there a way to do custom grid summary using selected rows?

So for example as a user selects rows on the grid, we would like to display a footer with a running total of the selection. But I read in the documentation that Kendo UI does not support custom group and table summary aggregation logic. So is there a way around that?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 16 Dec 2016, 08:12 AM
Hello David,

Indeed, the desired functionality is not supported, but can be achieved with some custom logic implementation.

A possible approach is to handle the Grid's dataBound event to append a custom row to the tbody, and then use the change event to adjust this row content based on the selected items (available via the select() method).

I have prepared a simple example, demonstrating the described approach:

http://dojo.telerik.com/ulaNA

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or