KoolReport's Forum

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

DataGrid and Table striped appeareance not working #634

Closed Ant Klad opened this topic on on Jan 29, 2019 - 3 comments

Ant Klad commented on Jan 29, 2019

I'm trying to get the striped appearance to work for DataGrid and Tables using :

"cssClass"=>array(
            "table"=>"table table-striped table-bordered",
        ),

but it does not seem to work. Any suggestions?

KoolReport commented on Jan 30, 2019

That's strange! It seems working well in our examples. Have you tried with our downloaded examples. Here is what we use with DataTables.

Ant Klad commented on Jan 30, 2019

I have tried this but no luck. I'm using :

<?php
DataTables::create(array(
    "dataStore"=>$this->dataStore('StatisticsRep'),
	"themeBase"=>"bs4",
	"cssClass"=>array(
            "table"=>"table table-striped table-bordered"
        ),
	"options"=>array(
        "searching"=>true
    ),
.........

and the result is the picture attached.

Ant Klad commented on Feb 2, 2019

The solution is to use the <link rel="stylesheet" href="../bootstrap.min.css">

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
help needed

None