or
<div> @(Html.Kendo().Grid<Item>() .Name("grid") .Columns(columns => { columns.Bound(c => c.ItemCode); columns.Bound(c => c.ItemName); columns.Command(command => command.Custom("Details").Text("Details").Action("OpenDetailsForm", "Home")).Width(100); }) .HtmlAttributes(new { style = "height: 380px;" }) .Scrollable() .Selectable(o => o.Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Row)) .Sortable() .Resizable(o => o.Columns(true)) .Reorderable(o => o.Columns(true)) .Filterable() .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(3)) .DataSource(dataSource => dataSource .Custom() .ServerSorting(true) .ServerFiltering(true) .ServerPaging(true) .ServerGrouping(true) .ServerAggregates(true) .Schema(s => s.Total("Total").Data("Data")) .Type("odata") .PageSize(10) .Transport(r => r.Read(c => c.Cache(true)).Read(a => a.Action("GetGridDataSource", "Home", new { entityName = typeof(Item).FullName }).DataType("json")))))</div>

[Required(ErrorMessage = "Activity Value is required!")] [Range(0, 90000000, ErrorMessage = "Activity Value Cannot be less than zero!")] [RegularExpression(@"^\d{1,8}(\.\d{1,4})?$", ErrorMessage = "Please enter a numeric value with up to four decimal places.")] public decimal Activity { get; set; }<TestMethod()>Public Sub GetLogEntryData_Passes_Through_Filters_On_Multiple_Columns() Dim passedCmd As GridParameters = Nothing _adminLogService.Setup(Function(s) s.GetLogEntries(It.IsAny(Of GridParameters))).Returns(_validLogEntries).Callback(Sub(p) passedCmd = p) Dim target As New AdminLogController(_adminLogService.Object, Nothing) Dim cmd As GridCommand = GridCommand.Parse(1, 10, Nothing, Nothing, "UserName~eq~'test'~and~ControllerName~startswith~'Users'") target.GetLogEntryData(cmd) Assert.IsNotNull(passedCmd) Assert.AreEqual(2, passedCmd.Filters.Count)End Sub