SwitchGridFilter

Tag Helper <switch-grid-filter />

Renders a switch on/off control to filter a grid. When changed, the grid will auto refresh.

Properties

string id

HTML id attribute of the control

string grid-id

ID of the table-ajax-grid control.

string label
Default: Active Only

The label for the control.

bool checked
Default: true

Initial checked state of the control

Example

Razor
<switch-grid-filter id="ActiveChildOnly" grid-id="ChildGrid" />