KoolReport's Forum

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

Responsive Plugin on DataGrid Doesn't Work #1988

Open Daniel opened this topic on on Mar 23, 2021 - 2 comments

Daniel commented on Mar 23, 2021

Hi, as the title says, when I resized the window, table doesn't adjust to it. Here's the code:

Datatables::create([
          'name' => 'uniqueTable',
          'Title' => $this->params['title'],
          'dataSource' => $dataSource,
          'columns' => $columns,
          'options' => 
          [
            'searching' => $searching, 
            'colReorder' => true, 
            'paging' => $paging
          ],
          'serverSide' => $serverSide,
          'cssClass' => $cssClass,
          'plugins' => ['Responsive']
        ]);

Is there something wrong?

Sebastian Morales commented on Mar 23, 2021

Daniel, pls add "responsive" => true to your "options" like this:

          'options' => 
          [
            'responsive' => true,
            'searching' => $searching, 
            'colReorder' => true, 
            'paging' => $paging
          ],

Let us know how it works for you. Tks,

Daniel commented on Mar 24, 2021

It works now. Thanks.

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
solved

DataGrid