How the input variable newstartindex of action PaginationOnNavigate  gets the value during pagination ?

Please explain this process ? Pagination is working fine but how the variable newstartindex gets the value?

Hi Sangam,

It is handled by pagination widget itself. It provide NewStartIndex based on pagination StartIndex, MaxRecords and TotalCount properties.

For example - You have total 50 records in your entity and you want to display 10 records per page. In this case for first page -

StartIndex = 0

MaxRecords = 10

TotalCount = 50

If you click on next page(2) then It will give NewStartIndex = 10(based on page number and max records) and StartIndex and MaxRecords properties are also used on aggregates, so it fetched the next 10 records.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.