Skip to content

Select

Reference

Select adds item selection capabilities to a DataTable. Items can be rows, columns or cells, which can be selected independently, or together. Item selection can be particularly useful in interactive tables where users can perform some action on the table, such as editing rows or marking items to perform an action on.

Enable selection.

.Select(true)
Or, configure it.
.Select(s => s.Style(SelectStyle.Multi).HeaderCheckbox())

ClassName

Set the class name that will be applied to selected items.

.ClassName("row-selected")

Blurable

Indicate if the selected items will be removed when clicking outside of the table.

.Blurable(true)

HeaderCheckbox

Control automatic addition of header checkbox.

.HeaderCheckbox()
Limit with page selection.
.HeaderCheckbox(selectPage: true)

Info

Enable / disable the display for item selection information in the table summary.

.Info(false)

Items

Set which table items to select (rows, columns or cells).

.Items(SelectItems.Row)

Selector

Set the element selector used for mouse event capture to select items.

.Selector("td:first-child")

Style

Set the selection style for end user interaction with the table.

.Style(SelectStyle.Multi)

Toggleable

Disable the deselection of selected rows when clicked.

.Toggleable(false)

Selectable

Set a function that will determine if a row should be selectable.

.Selectable("selectAction")