Kendo MVC网格过滤 [英] Kendo MVC grid filtering
本文介绍了Kendo MVC网格过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
设置过滤器的正确语法是什么,它只显示网格中非零余额的贷款?
@(Html.Kendo()。Grid< BorrowerLoan>()
.Name( Loans )
.Events(events = > events.DataBound( < span class =code-string> onDataBound))
.DataSource(dataSource = > dataSource
.Ajax( )
.ServerOperation( false )
。读取(读取= > 读取.Action( LoanListAjax,controller))
.PageSize(Constants.PageSize)
.Filter(CurrentLoanBalance > 0 )
)
W帽子应该是.Filter(CurrentLoanBalance> 0)是?
解决方案
阅读这个 [ ^ ]。
What is the correct syntax to set the filter so it will only display loans with a non-zero balance in the grid?
@(Html.Kendo().Grid<BorrowerLoan>()
.Name("Loans")
.Events(events => events.DataBound("onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("LoanListAjax", controller))
.PageSize(Constants.PageSize)
.Filter(CurrentLoanBalance > 0)
)
What should the ".Filter(CurrentLoanBalance > 0)" be?
解决方案
Read this[^].
这篇关于Kendo MVC网格过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文