0
特定の条件に一致する列のレコードの総数を見つける方法を知っていますか?kendo mvc grid ondatabound特定の条件に一致する行の総数を見つけよう
//例
@(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>
どうもありがとうございました。