Aller au contenu principal

LgGridSelectionColumn<TItem>

Module : Lagoon.UI.GridView
Namespace : Lagoon.UI.Components
Catégorie : Columns
Hérite de : LgGridBaseNoValueColumn<TItem>

Selection column

Paramètres​

ParamètreTypeDescription
CanSelectSelectorFunc<TItem, bool>Gets or sets a selector deciding, from the item bound to the row, whether the row can be selected by the user (checkbox, row click, "select all"). null means every row is selectable.
DisableSelectAllboolOption to disable the selection of all rows in the Gridview
SingleSelectionboolOption to select only a single line

Paramètres hérités de LgGridBaseNoValueColumn<TItem>​

ParamètreTypeDescription
CellContentRenderFragment<GridCellContext<TItem>>Gets or sets template of the normal cell. The context exposes the item bound to the row.
EditCellContentRenderFragment<GridCellContext<TItem>>Gets or sets template of the edit cell. The context exposes the item bound to the row.

Paramètres hérités de LgGridBaseColumn<TItem>​

ParamètreTypeDescription
AllowHideboolGets or sets if the column can be hidden
AllowSortboolGets or sets if the column can be sorted
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label
CalculationCssClassstringGets or sets css class for column calculation cell
CalculationDisplayFormatstringGets or sets the display format for the calculation cell.
CalculationTypeDataCalculationTypeGets or sets calculation function
CanAddboolGets or sets if we can add new lines.
CanEditboolGets or sets if the cells are editable
CanEditSelectorFunc<TItem, bool>Gets or sets a selector deciding, from the item bound to the row, whether this column's cell is editable. Combined with CanEdit and the grid edit capability. Use this instead of capturing the "Columns" context variable in CanEdit (the "Columns" fragment is evaluated only once).
ColSpanintGets or sets field with column span value
ConfirmationMessagestringGets or sets confirmation message in cell edit mode only
CssClassstringGets or sets css class for all column cells
CssClassSelectorFunc<TItem, string>Gets or sets a selector returning an additional CSS class for a body cell, from the item bound to the row. Use this instead of capturing the "Columns" context variable in CssClass (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column (e.g. to apply a background color to the whole column): a selector reading the item must handle null when the grid has a calculation row.
DefaultFrozenboolGets or sets if the column is frozen.
DefaultSortDirectionDataSortDirectionGets or sets default sort direction
DefaultVisibleboolGets or sets if the column is displayed
DefaultWidthstringGets or set width of the column. Default value : "1fr"
DisplayFormatstringGets or sets the display format.
DisplayFormatSelectorFunc<TItem, string>Gets or sets a selector returning the display format of a body cell, from the item bound to the row. When set, its per-row result wins over DisplayFormat. Use this instead of capturing the "Columns" context variable in DisplayFormat (the "Columns" fragment is evaluated only once). Affects the read-only display only (not the export nor the group headers). The selector is also called with a null item for the calculation cell: a selector reading the item must handle null when the grid has a calculation row.
ExportTitlestringGets or sets the title used when the column is exported. The column "Title" parameter is used by default.
ExportValueAsStringboolForce the current value to be reconize as a string.
ExportableboolGets or sets if the column is exportable.
GroupNamestringGets or sets the column group name. See the LgGroup component for a simplified declaration of column groups.
GroupSelectorExpression<Func<TItem, object>>Gets or sets a per-item group key expression item => item.Key. Modern, strongly typed replacement of the obsolete GroupExpression: when set it provides the group key (presence wins over GroupExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration.
HeaderCellContentRenderFragmentGets or sets header content.
HeaderCssClassstringGets or sets the header CSS class.
HeaderTooltipstringGets or sets tooltip for header cell
HideContentboolGets or sets if the cells contents are displayed
HideContentSelectorFunc<TItem, bool>Gets or sets a selector deciding, from the item bound to the row, whether this column's cell content is hidden. When set, its per-row result wins over HideContent. Use this instead of capturing the "Columns" context variable in HideContent (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column: a selector reading the item must handle null when the grid has a calculation row.
KeystringGets or sets unique id of the column
LambdaSelectorExpression<Func<TItem, object>>Gets or sets a per-item expression item => item.Key shared as the fallback for the filter, the sort and the group. Modern, strongly typed replacement of the obsolete LambdaExpression: when set it enables the filter and the sort and provides the key (presence wins over LambdaExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration.
MaxWidthintGets or sets maximal width
MinWidthintGets or sets minimal width
OnCellClickEventCallback<GridViewCellClickEventArgs<TItem>>Gets or sets cell click event
ResizableboolGets or sets if the column can be resized
SortSelectorExpression<Func<TItem, object>>Gets or sets a per-item sort key expression item => item.Key. Modern, strongly typed replacement of the obsolete SortExpression: when set it enables the column sort and provides the key (presence wins over SortExpression). A value-type key is automatically unboxed so the expression stays translatable to a remote query; a computed key (not a simple member path) works locally only. Frozen once at column registration (changing it at runtime is not supported).
TitlestringGets or sets title
WeightSelectorExpression<Func<TItem, object>>Gets or sets a per-item weight expression item => item.Weight used to compute the weighted average of the column (requires a DataCalculationType.Average calculation). Modern, strongly typed replacement of the obsolete WeightExpression: when set it provides the weight (presence wins over WeightExpression). A value-type weight is automatically unboxed so the expression stays translatable to a remote query. Frozen once at column registration.

Paramètres en cascade hérités de LgGridBaseColumn<TItem>​

ParamètreTypeDescription
GridViewLgGridView<TItem>GridView parent