RE: Adding page number in Opportunity form
Please try below options
1.Create "Page No" in the Associated view of the subgrid
2.Use the below logic to get the total record count of the grid
//getSubGridRecordCount:
function()
{
var BookingforecastSubGrid = Xrm.Page.getControl("bookingforecast").getGrid();
var TotalRecordCount = BookingforecastSubGrid.getTotalRecordCount();
}
3. Get the Total record displayed per page in the subgrid
4. Divide the TotalRecordCount /Number of Rows
var TotalRowsPerPage = TotalRecordCount /NumberOfRows;
5. Write your script logic to increment the PageNo Upon click on the Subgrid pagination button. You can find the pagination icon id from the Developer tool.
Hope this might be helpful, If this works for you pls mark it as verified.