Generate columns automatically based on the model source.
no-records-message
string
"No matching records found"
The message shown if there are no rows in the table.
pagination
bool
true
Use the in-built default pager or none.
pager-position
PagerVerticalAlignment
Bottom
Specify where you would like the pager to be positioned.
show-header
bool
true
Show or hide the header.
ajax
bool
false
Support for Ajax.
Column Markup
<th asp-for="#" [column options] />
Column Options
Attribute
Type
Default
Description
asp-for
string
n/a
An expression containing a property name. This name must exist in the model defined against the parent table.
id
string
asp-for
The header id value to be used. This will default to the defined asp-for name if not specified.
cell-display-format
string
n/a
Set the display format. This is the equivelent of using the model annotation [DisplayFormat(DataFormatString = "#")].
cell-null-display-text
string
n/a
Set the text that will be displayed if the expression contains a null value. This is the equivelent of using the model annotation [DisplayFormat(NullDisplayText = "#")].
cell-uihint
string
n/a
Set the display template used to visualize the expression. This is the equivelent of using the model annotation [UIHint("#")].
cell-visible
bool
n/a
Set the visibility of the column. This is the equivelent of using the model annotation [HiddenInput(DisplayValue = #)].
All of the cell- based attributes will override the equivent annotations defined against the model specified (asp-for).