New to Kendo UI for AngularStart a free 30-day trial

SpanColumnComponent

Represents a column that spans multiple data cells while keeping the individual header and footer cells (see example). Use this column to create flexible layouts and keep built-in UI for sorting, filtering, and grouping. Wrap the columns you want to merge inside the <kendo-grid-span-column> tag.

html
<kendo-grid-span-column>
  <kendo-grid-column field="ID"></kendo-grid-column>
  <kendo-grid-column field="Name"></kendo-grid-column>
  <ng-template kendoGridCellTemplate let-dataItem>
    <p>{{ dataItem.ID }}</p>
    <p>{{ dataItem.Name }}</p>
  </ng-template>
</kendo-grid-span-column>

Selector

kendo-grid-span-column

Inputs

NameTypeDefaultDescription

autoSize

boolean

Specifies if the column is automatically resized during initialization to fit its header and row content.

columnMenu

boolean

true

Specifies if the column menu is shown for the column.

class

string | string[] | Set<string> | {[key: string]: any}

Sets custom CSS classes to the column cells. Uses the NgClass directive. See example. To customize header and footer column cells, use the headerClass and footerClass inputs.

editable

boolean

false

Sets whether the edit template of the column is rendered. To enable editing for a spanned column, set an edit template for it (see example).

filterClass

string | string[] | Set<string> | {[key: string]: any}

Sets custom CSS classes to the filter row cell. Uses the NgClass directive. See example.

filterStyle

{[key: string]: string}

Sets custom styles for the filter row cell. Uses the NgStyle directive. See example.

hidden

boolean

false

Sets the visibility of the column (see example).

lockable

boolean

true

Specifies if the column can be locked or unlocked from the column menu or by reordering.

locked

boolean

false

Toggles the locked (frozen) state of the columns (see example).

maxResizableWidth

number

Sets the maximum width (in pixels) for resizing the column by using the UI (see example). By default, the maximum width is not restricted. The autoFitColumn and autoFitColumns methods have higher priority.

media

string

Sets the condition for the column to remain visible (see example). If you set the hidden property, media is ignored.

Accepts device identifiers from Bootstrap 4 (see example).

minResizableWidth

number

10

Sets the minimum width (in pixels) for resizing the column by using the UI (see example). The autoFitColumn and autoFitColumns methods have higher priority.

reorderable

boolean

true

Specifies if the column is reorderable.

resizable

boolean

true

Specifies if the column is resizable.

stickable

boolean

true

Specifies if the column can be stuck or unstuck from the column menu.

sticky

boolean

false

Specifies if the column is always visible when scrolling the Grid horizontally.

style

{[key: string]: string}

Sets custom styles for the table cells (excluding footer and header) of the column. Uses the NgStyle directive. See example.

tableCellsRole

string

"gridcell"

Sets the role attribute for the table cells (excluding footer and header) of the column.

Fields

NameTypeDefaultDescription

orderIndex

number

0

Gets the column index after reordering. The orderIndex property is read-only. Setting this field does not change the column order.

In this article
SelectorInputsFields
Not finding the help you need?
Contact Support