KoolReport's Forum

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

Sort DataTable Server Processing #1090

Open SOFMAN opened this topic on on Sep 18, 2019 - 3 comments

SOFMAN commented on Sep 18, 2019

I have ordering = true and it doesn't work, how to sort a column of a DataTable Server Processing?

David Winterburn commented on Sep 20, 2019

Hi,

To sort a column in server processing mode just click the header of that column. Let me know if you want something else. Thanks!

SOFMAN commented on Sep 20, 2019

I have discovered that there is an error in KoolReport for this functionality. In the class koolreport \ datagrid \ DataTables line 471 there is the following code:

if ($ dir! == "asc" || $ dir! == "desc") continue;

the correct way would be:

if ($ dir! == "asc" && $ dir! == "desc") continue;

The idea was that the error was corrected.

David Winterburn commented on Sep 23, 2019

Hi,

Thanks a lot! It is indeed a bug for server side's sorting you have found. We will fix this in the next release of datagrid.

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

DataGrid