Page 1 of 1

Determine if last data row of list page in ListOptions_Rendering

Posted: Thu Feb 01, 2024 10:43 am
by stephen21345

Hi,
I want to make some custom changes to the options for just the last entry of a list page.
How do i determine if it is the last row?

As I understand,
$this->RowType==1 // is a data row
$this->RowCount // is the count of the Data Row for this page
$this->TotalRecords // is the total number of records in the recordset (not the number on the page)

Is $this->DisplayRecords the max number of rows to be displayed?
What is $this->RowIndex?
So say I have 33 records, and I display 20 per page, when I am on the second page how can I determine I am on the last row?
How do i determine if it is the 1st "page" or the 2nd so I know how to calculate if I am on the last data row?

Basically, how do I determine if I am on the last data row on the current list page inside ListOptions_Rendering?


Re: Determine if last data row of list page in ListOptions_Rendering

Posted: Thu Feb 01, 2024 3:40 pm
by arbei

You may try if ($this->RecordCount == $this->StopRecord).