Hi
Is it possible to group rows in a datagrid table like here:
https://datatables.net/examples/advanced_init/row_grouping.html
Thanks for your help Jure
Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi
Is it possible to group rows in a datagrid table like here:
https://datatables.net/examples/advanced_init/row_grouping.html
Thanks for your help Jure
Hi,
Please following the previous rowGroup sample code that I post in your early topics, you may define the "drawCallback" function like this:
..
"drawCallback"=>"function(settings){
//javascript content
}"
...
By doing so, you will enable the rowGroup like the sample you sent me.
Hope that helps.
Let me know if you need further assistance.
Hi, I tried this but the column with the group doesn't disappear. Any idea how I can fix this ? Thanks
"dataSource" => $this->dataStore("queryDistribution"),
"options" => array(
"searching" => true,
"fixedHeader" => true,
"colReorder"=> true,
"order"=>array(
array(1,"asc"), //Sort by first column desc
array(0,"asc") //Sort by second column asc
),
"rowGroup"=>array(
"dataSrc"=>1,
),
"columnDefs"=>array(
"visible"=> false,
"targets"=>1,
),
),
(using Laravel)
good point, I should always remember to do that, sorry. I just checked Console, and it shows DevTools failed to load SourceMap: Could not load content for http://localhost:8000/koolreport_assets/699317815/bootstrap.bundle.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
strange because the report is working except for hiding the column.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo