ok, I have some code. It's trying to filter but giving me the error "Invalid property or
field - 'undefined' for type: list_result Source: Kendo.Mvc Method:
System.Linq.Expressions.Expression
CreateMemberAccessExpression(Kendo.Mvc.Infrastructure.Implementation.Expressions.IMemberAccessToken,
System.Linq.Expressions.Expression) "
Code:
@Html.TextBox("SearchBox") <button id="btnSearch">Filter</button>
<script>
$('#btnSearch').on("click", function (e) {
refreshList();
return false;
});
function refreshList() {
$filter = new Array();
$filter.push({ field: "searchname", operator: "contains", value: $('SearchBox').val() });
var list = $("#listView").data("kendoListView");
list.dataSource.filter($filter);