Hello!
I'm using your Datagrid to display data. I'm using an AJAX call. This works smooth with less records.
However performance slightly degrades if size exceeds after say 40,000 rows. You've mentioned here that we can use serverSide
paging
Following is my sample code:
<?php
use \koolreport\datagrid\DataTables;
?>
<script type="text/javascript" src="js/table_kool.js"></script>
<link href="css/table_kool.css" rel="stylesheet" type="text/css">
<div id ="reportContent">
<h3 class="tblallign titleCss">Purchase Register Report</h3>
<?php
DataTables::create(array(
"dataStore" => $this->dataStore('myDataStore'),
"options" => array(
"searching" => true,
"colReorder" => true,
"paging" => true,
"fixedHeader"=>false,
"showFooter" => false,
"scrollCollapse" => true,
"lengthMenu" => [25, 50, 75, 100],
"header" => true,
"order" => array(
array(1, "asc")
)
),
"serverSide" => true,
"themeBase" => "bs4",
"columns" => array(
//Columns
),
"cssClass" => array(
"table" => "table table-hover table-bordered tblallign table-responsive invTbl",
"th" => "cssHeader",
"tr" => "cssItem,kool_mismatchedRow",
"td" => "cssDataCol",
"tf" => "cssfooter",
'td' => function($row, $colName) {
},
)
));
?>
</div>
<script type="text/javascript" >
My question is that how can I pass custom URL
in server side paging ? You've not documented this point. Currently it is performing GET request on my current URL
with all parameters are appended in query string resulting 414
status code.
An example will be better.
Thank you