Options
Name | Movie Director | Movie Genre | Released |
---|---|---|---|
Star Wars | George Lucas | Sci-Fi | 1997 |
Reservoir Dogs | Quentin Tarantino | Thriller | 1992 |
Airplane! | David and Jerry Zucker and Jim Abrahams | Slapstick | 1980 |
Terminator | James Cameron | Action | 1984 |
Terminator 2: Judgement Day | James Cameron | Action | 1991 |
Maximum Rows
@(await Html
.SimpleGrid(Model)
.AddColumnsForModel()
.Options(options =>
{
// Prevent the Grid from pulling a million records
options.MaxRows = 5;
// Override Partial Views used to build a Grid
//options.TableViewName = ...
//options.SearchViewName = ...
//options.GridViewName = ...
})
.RenderAsync())
Name | Movie Director | Movie Genre | Released |
---|---|---|---|
Sorry buddy, there nothing here for you... |
No Matching Records
@(await Html
.SimpleGrid(Model.Take(0))
.AddColumnsForModel()
.Options(options =>
{
options.NoMatchingRecordsHtml =
"Sorry buddy, there nothing here for you...";
})
.RenderAsync())