Hello,
What is a recommended approach to getting:
1. The number of selected rows
2. The sum of one of the data-bound column's values across the selected rows
i.e., If the user selects two "Customer" rows, and the "Items Purchased" column in those rows have values 10 and 20, respectively, I need the display to be:
Customers: 2 Items Purchased: 30
If no rows are selected, then those displayed values would, of course, be 0.
The way the Grid is marked up is shown below. I did not create the application, but I am tasked with enhancing it as described and I don't want to bug the original developer and have them "do it for me". The application is using jQuery, so I have access to that. Thanks for your help.
<
div
id
=
"gridWrapp"
class
=
"k-content"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12 center"
>
@(Html.Kendo().Grid<
CustomerModel
>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.ItemsPurchased).Width(35);
...
})
</
div
>
</
div
>
</
div
>