0
Kann ich die Gesamtzahl der Datensätze ermitteln, die eine Spalte mit einem bestimmten Kriterium übereinstimmen?kendo mvc grid ondatabound Gesamtanzahl der Zeilen finden, die einem bestimmten Kriterium entsprechen
// Beispiel
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.ProductName).Title("Product Name");
columns.Bound(p => p.UnitPrice).Title("Unit Price");
columns.Bound(p => p.UnitsInStock).Title("Units In Stock");
})
.Pageable()
.Sortable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Multiple)
.Type(GridSelectionType.Cell))
.Events(events => events.DataBound("onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Products_Read", "Grid"))
)
)
<script>
function onDataBound(arg) {
**How can i find the total number of records that the Unit Price equal to 10?**
}
</script>
Vielen Dank.