@model IQueryable<Person>
@(Html
.Grid(Model)
.Build(columns =>
{
columns.Add(model => model.Name).Titled("Name").UsingDefaultFilterMethod("equals");
columns.Add(model => model.Surname).Titled("Surname").UsingDefaultFilterMethod("contains");
columns.Add(model => model.MaritalStatus).Titled("Marital status");
columns.Add(model => model.Age).Titled("Age").UsingDefaultFilterMethod("less-than-or-equal");
columns.Add(model => model.Birthday).Titled("Birthday").Formatted("{0:d}");
columns.Add(model => model.IsWorking).Titled("Employed");
})
.Empty("No data found")
.Filterable()
)