KoolReport's Forum

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

Table Paging not working #216

Open sri opened this topic on on Feb 15, 2018 - 3 comments

sri commented on Feb 15, 2018

Hi, My paging is not working properly it is displayed one by one as

My code is

"dataStore"=>$this->dataStore("qtr_cons_raw"),

		 "paging"=>array(
         "pageSize"=>10,

I don't know where i went wrong.

KoolReport commented on Feb 15, 2018

It is lack of Bootstrap, so in your report, please add the bootstrap like following

class MyReport extends \koolreport\KoolReport
{

    use \koolreport\clients\Bootstrap; // This add style for Table as well jQuery for its action.
    ...

sri commented on Feb 15, 2018

It works, Thank you!

Vivek Chaurasia commented on Aug 23, 2018

The table has 40 rows but it is getting truncated to 10 rows also pagination is not working, please help

<?php
	Table::create(array(
		"dataStore"=>$this->dataStore('SHGReported'),
		"paging"=>array(
			"pageSize"=>10,
			"align"=>"center",
			"pageIndex"=>0,
		),
		"showFooter"=>"bottom",
			"columns"=>array(
				"blockname"=>array(
					"label"=>"CRDC",
					"color"=>"red",
					"footerText"=>"<strong>Total SHGs Reported</strong>",
					
				),
				"meetings"=>array(
					"type"=>"float",
					"label"=>"SHGs Reported",
					"prefix"=>"",
					"footer"=>"sum",
					"footerText"=>"<strong>@value</strong>",
				)
			),
		"cssClass"=>array(
			"table"=>"table table-hover table-bordered table-striped"
		)

	));
 ?>

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

None