Column Freeze or Fixed Column in datatable

primefaces

Solution

Primefaces does not support fixed columns right now.

Jquery fixed column was used to achieve the same. Reference : http://datatables.net/extras/fixedcolumns/

Example:

var oTable2 = $(primfacesDataTableId).find('table').dataTable({
                "sScrollX" : "100%", //Scroll
                "sScrollY" : "180",
                "bAutoWidth" : false,
                "bScrollCollapse" : true,
                "bPaginate" : false,
                "bSort" : false,
                "sInfo" : "",
                "sInfoEmpty" : ""
            });

var oFC = new FixedColumns(oTable2, {
                    "iLeftColumns" : 4, //Freezed first for columns
                    "sHeightMatch" : "auto",
                    "iLeftWidth" : 405
                });

Thanks, Shikha

Problem

Is it possible to freeze first 3 columns of Primefaces' data table? I'm using Primefaces 3.1

Original source