PHP Classes

File: assets/plugins/datatables/extensions/FixedColumns/

Recommend this page to a friend!
  Classes of Kishor Mali  >  PHP User Feedback System  >  assets/plugins/datatables/extensions/FixedColumns/  >  Download  
File: assets/plugins/datatables/extensions/FixedColumns/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP User Feedback System
Application to record feedback from customers
Author: By
Last change:
Date: 1 year ago
Size: 1,509 bytes


Class file image Download


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

  • Freezes the left most column to the side of the table
  • Option to freeze two or more columns
  • Full integration with DataTables' scrolling options


To use FixedColumns, first download DataTables ( ) and place the unzipped FixedColumns package into a extensions directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the examples directory in your web-browser.

Basic usage

FixedColumns is initialised using the $.fn.dataTable.FixedColumns() constructor. For example:

$(document).ready(function() {
	var table = $('#example').DataTable( {
		scrollY:        "300px",
		scrollX:        true,
		scrollCollapse: true,
		paging:         false
	} );

	new $.fn.dataTable.FixedColumns( table );
} );

Documentation / support

  • Documentation:
  • DataTables support forums:


If you fancy getting involved with the development of FixedColumns and help make it better, please refer to its GitHub repo:

For more information send a message to info at phpclasses dot org.