KoolReport's Forum

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

Column Resize feature #3411

Open Tracx opened this topic on on Jan 22 - 1 comments

Tracx commented on Jan 22

Hi Support Team,

We have a requirement to allow column width adjustment using a drag-and-drop functionality. Could you please let us know if this feature is supported in DataTable, or if there is a specific package or plugin available to implement it?

For your reference, I am currently using DataTable with server-side configuration.

Thank you in advance for your assistance. I look forward to your response.

Sebastian Morales commented on Feb 3

Hi, it is possible to dynamically resize DataTables' columns with drag and drop downloading and using the following plugins:

https://github.com/dhobi/datatables.colResize/blob/master/jquery.dataTables.colResize.js

https://github.com/dhobi/datatables.colResize/blob/master/jquery.dataTables.colResize.css

MyReport.view.php:


<link rel="stylesheet" href="https://{your_server_url_to}/jquery.dataTables.colResize.css">

<?php

    DataTables::create(array(
        ...
        "plugins" => [
            'https://{your_server_url_to}/jquery.dataTables.colResize.js'
        ],
        "options" => [
            "colResize" => [
                'isEnabled' => true,
            ], 

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