KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Fixed First Column #1994

Open Alex opened this topic on on Mar 25 - 3 comments

Alex commented on Mar 25

Hello,

I see the ease to fix the header row, but I do not see any documentation to set a fixed column.

Does this exist?

KoolReport commented on Mar 25

If you want to have the fixed first column features, please use the DataTables widget from DataGrid packages.

Alex commented on Apr 26

Hello,

I have reviewed the features of the Data Tables widget, but I do not see any documentation around "freezing" the first column. I see documentation around freezing the header row, which I included as a picture for reference, but nothing further.

Could you please point me in the right direction? Thanks for your help!

This is where I have been reviewing:

https://www.koolreport.com/docs/datagrid/datatables/#format-column-value

Sebastian Morales commented on Apr 27

Pls check this example of fixed columns for DataTables in client side setting:

https://datatables.net/extensions/fixedcolumns/examples/initialisation/left_right_columns.html

You could convert those options to PHP array and use them in DataTables widget like this:

DataTables::create(array(
    ...
    "options" => array(
        "scrollY" => "300px",
        "scrollX" => true,
        "scrollCollapse" => true,
        "paging" => false,
        "fixedColumns" => array(
            "leftColumns" => 1,
            "rightColumns" => 1
        )
    ),
));

Let us know how it works for you. Tks,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

DataGrid