KoolReport's Forum

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

DataTables ServerSide custom ajax url #2402

Open Epitello opened this topic on on Oct 22, 2021 - 1 comments

Epitello commented on Oct 22, 2021

Hi,

I want to use "serverSide" params because the table has many rows (200 000). Like in PivotMatrix, I added "scope" parameter to get Report but it doesn't seem to work.

Thanks

Sebastian Morales commented on Oct 22, 2021

We will add an "ajaxUrl" property for DataTables widget in the next version. Meanwhile you could apply an edit yourself to make it work by opening the file koolreport/datagrid/DataTables.php and replacing these lines:

            'ajax' => [
                'url' => '',

with these ones:

            'ajax' => [
                'url' => Util::get($this->params, 'ajaxUrl', ''),

Then in your DataTables' create you set server side processing like this:

DataTables::create(array(
    ...
    "serverSide" => true,
    "ajaxUrl" => $yourDataTablesAjaxUrl,
    ...
));
``

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
None yet

None