Skip to content

FixedColumns

Reference

When making use of DataTables' x-axis scrolling feature (scrollX), you may wish to fix the left or right most columns in place. This extension for DataTables provides exactly this option (for non-scrolling tables, please use the FixedHeader extension, which will create sticky headers and footers for tables).

Enable the FixedColumns extension for DataTables.

.FixedColumns(true)
Or, configure it.
.FixedColumns(f => f.Start(0).End(1))

Start

Number of columns to fix to the start of the table.

.Start(0)

End

Number of columns to fix to the end of the table.

.End(1)

Left

Number of columns to fix to the left of the table.

.Left(2)

Number of columns to fix to the right of the table.

.Right(1)

LeftColumns

Number of columns to fix to the left of the table.

.LeftColumns(2)

RightColumns

Number of columns to fix to the right of the table.

.RightColumns(1)