@model IQueryable<Person>
@(Html
.Grid(Model)
.Build(columns =>
{
columns.Add(model => model.Name).Titled("Name").UsingFilterOptions(new[]
{
new SelectListItem(),
new SelectListItem { Value = "Joe", Text = "Joe Crosswave" },
new SelectListItem { Value = "Merry", Text = "Merry Lisel" }
});
columns.Add(model => model.Surname).Titled("Surname");
columns.Add(model => model.MaritalStatus).Titled("Marital status");
columns.Add(model => model.Age).Titled("Age").UsingFilterOptions();
columns.Add(model => model.Birthday).Titled("Birthday").Formatted("{0:d}");
columns.Add(model => model.IsWorking).Titled("Employed");
})
.Empty("No data found")
.Filterable()
.Sortable()
.Pageable()
)