Hello,
I'm currently searching for a smart way to display the number of selected rows in a Grid.
In my grid I have a select column to select items and a second column that shows the information:
columns.Select().Width(30);
columns.Bound(item => item.Name).ClientFooterTemplate("All items: #=count#");
This is the corresponding aggregate for the item counter:
.Aggregates(aggregates => aggregates.Add(item => item.Name).Count())
What I want to archive is that the footer template is also showing the number of selected items.
Pseudocode (which is obviously not working):
columns.Bound(item => item.Name).ClientFooterTemplate("All items: #=count#<
br
>Selected items: #=selectedCount#")
The only way I found to show the selected item count is to manipulate the DOM ($(".k-footer-template td:nth-child(2)")) when the grid change event is firing.
Does anybody have a smarter solution for my problem?
Any help is appreciated!
Regards
Raphael