KoolReport's Forum

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

Remove initial sorting on first column on datatables #1380

Closed ankit raj opened this topic on on Apr 9, 2020 - 2 comments

ankit raj commented on Apr 9, 2020

Is there a way to remove the default sorting of the datatable based on the first column?

 "order"=>array(
            array(0,"desc") //Sort by first column desc
            array(1,"asc") //Sort by second column asc
        ),

using this, i passed order=>array(array()) but it didnt work

KoolReport commented on Apr 9, 2020

You try:

"columnDefs"=>array(
    array("orderable"=>false,"targets"=>0)
)

to see how.

ankit raj commented on Apr 9, 2020

Thanks that was not working but this worked : 'options' => [

                "order" => [],
            ]

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