Page 1 of 1
Count data on header
Posted: Fri Mar 17, 2023 3:48 pm
by ach8
How to display the amount of data above the table based on a search?
function Page_DataRendering(&$header) {
$header = "Count : " . $this->RowCount; // NOT WORK ON Page_DataRendering
}
Re: Count data on header
Posted: Fri Mar 17, 2023 4:23 pm
by mobhar
Try Page_DataRendered instead.
Re: Count data on header
Posted: Fri Mar 17, 2023 4:48 pm
by ach8
Yes it works, but how to display above the table?
Re: Count data on header
Posted: Fri Mar 17, 2023 5:14 pm
by mobhar
You better use ExecuteScalar
instead.
Or, you may use this code in Page_DataRendering event:
$this->setMessage($this->TotalRecords);
Re: Count data on header
Posted: Fri Mar 17, 2023 5:52 pm
by ach8