KoolReport's Forum

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

Excel export has other sorting than my grid #2853

Open APP opened this topic on on Oct 25, 2022 - 1 comments

APP commented on Oct 25, 2022

I would like to have the sorting in the excel export same as the current sorting of the datagrid. Is that possible?

Sebastian Morales commented on Oct 26, 2022

Excel Table does support sorting but not in the exact syntax as DataTables'. Here's an example:

//MyReportExcel.view.php
excel/Table::create(array(
    ...
    "sorting" => array(
        "name"=>"desc",
        "age"=>"asc"
    ),
));

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