Hi, In a grid, I want to display a serial number along with my data. I am u

Hi,
In a grid, I want to display a serial number along with my data. I am using (enumerate(length(datasubset.data))+1) to display the serial number like 1, 2, 3, 4 and so on.
When I mention the pagingInfo batch size = 15, it displays 15 rows on the page with serial number from 1 to 15, but when I navigate to the next page it again resets the serial number from 1.
How can I make the serial number continuous even in the next pages.. like in the next page the serial number should start with 16 instead of getting reset to 1 again?

Thanks,
Smruti

OriginalPostID-176968

OriginalPostID-176968

  Discussion posts and replies are publicly visible

Parents
  • The best option I have found is instead of saving the entire paging info, only saving startIndex and batchSize, while not saving sort info. The code for the save into in the grid is the following:

    saveInto: {
    a!save(
    ri!pagingInfo,
    a!pagingInfo(
    startIndex: save!value.startIndex,
    batchSize: save!value.batchSize
    )
    )
    }

    If the user does click on the top of a column to sort, it will keep the items in the original order but take them to the top of the grid, so this works best with grids that are not often paged through.
Reply
  • The best option I have found is instead of saving the entire paging info, only saving startIndex and batchSize, while not saving sort info. The code for the save into in the grid is the following:

    saveInto: {
    a!save(
    ri!pagingInfo,
    a!pagingInfo(
    startIndex: save!value.startIndex,
    batchSize: save!value.batchSize
    )
    )
    }

    If the user does click on the top of a column to sort, it will keep the items in the original order but take them to the top of the grid, so this works best with grids that are not often paged through.
Children
No Data