Name | Surname | Marital status | Age | Birthday | Employed |
---|---|---|---|---|---|
Joe | Crosswave | Married | 36 | 1/5/1988 12:00:00 AM | False |
Merry | Lisel | Widowed | 46 | 5/6/1978 12:00:00 AM | |
Henry | Crux | Single | 34 | 11/19/1990 12:00:00 AM | True |
Cody | Jurut | 54 | 8/11/1970 12:00:00 AM | False | |
Simon | Scranton | Single | 39 | 10/10/1985 12:00:00 AM | |
Leena | Laurent | Divorced | 24 | 7/1/2000 12:00:00 AM | False |
Ode | Cosmides | Married | 58 | 4/17/1966 12:00:00 AM | True |
Diandra | Mizner | Single | 25 | 8/20/1999 12:00:00 AM | False |
Pete | Cassel | Married | 27 | 3/13/1997 12:00:00 AM | False |
Nicky | Tremblay | Married | 36 | 1/5/1988 12:00:00 AM | True |
@model IQueryable<Person>
@(Html
.Grid(Model)
.Build(columns =>
{
columns.Add(model => model.Name).Titled("Name").Filterable(GridFilterType.Double);
columns.Add(model => model.Surname).Titled("Surname").Filterable(true);
columns.Add(model => model.MaritalStatus).Titled("Marital status").Filterable(GridFilterType.Multi);
columns.Add(model => model.Age).Titled("Age").Filterable(GridFilterType.Double);
columns.Add(model => model.Birthday).Titled("Birthday").Filterable(GridFilterType.Double);
columns.Add(model => model.IsWorking).Titled("Employed").Filterable(true);
})
.Empty("No data found")
)