Name | Surname | Age | Birthday |
---|---|---|---|
Joe | Crosswave | 32 | 1/5/1992 |
Merry | Lisel | 42 | 5/6/1982 |
Henry | Crux | 30 | 11/19/1994 |
Cody | Jurut | 50 | 8/11/1974 |
Simon | Scranton | 35 | 10/10/1989 |
Leena | Laurent | 20 | 7/1/2004 |
Ode | Cosmides | 54 | 4/17/1970 |
Diandra | Mizner | 21 | 8/20/2003 |
Pete | Cassel | 23 | 3/13/2001 |
Nicky | Tremblay | 32 | 1/5/1992 |
Mary | Cassel | 25 | 7/10/1999 |
Name | Surname | Age | Birthday |
---|---|---|---|
Joe | Crosswave | 32 | 1/5/1992 |
Merry | Lisel | 42 | 5/6/1982 |
Henry | Crux | 30 | 11/19/1994 |
Cody | Jurut | 50 | 8/11/1974 |
Simon | Scranton | 35 | 10/10/1989 |
Leena | Laurent | 20 | 7/1/2004 |
Ode | Cosmides | 54 | 4/17/1970 |
Diandra | Mizner | 21 | 8/20/2003 |
Pete | Cassel | 23 | 3/13/2001 |
Nicky | Tremblay | 32 | 1/5/1992 |
Mary | Cassel | 25 | 7/10/1999 |
@model IQueryable<Person>
@(Html
.Grid(Model)
.Build(columns =>
{
columns.Add(model => model.Name).Titled("Name");
columns.Add(model => model.Surname).Titled("Surname");
columns.Add(model => model.MaritalStatus).Titled("Marital status");
columns.Add(model => model.Age).Titled("Age");
columns.Add(model => model.Birthday).Titled("Birthday").Formatted("{0:d}");
columns.Add(model => model.IsWorking).Titled("Employed");
})
.Empty("No data found")
.Named("first")
.Filterable()
.Sortable()
)
@model IQueryable<Person>
@(Html
.Grid(Model)
.Build(columns =>
{
columns.Add(model => model.Name).Titled("Name");
columns.Add(model => model.Surname).Titled("Surname");
columns.Add(model => model.MaritalStatus).Titled("Marital status");
columns.Add(model => model.Age).Titled("Age");
columns.Add(model => model.Birthday).Titled("Birthday").Formatted("{0:d}");
columns.Add(model => model.IsWorking).Titled("Employed");
})
.Empty("No data found")
.Named("second")
.Filterable()
.Sortable()
)