I am implementing the Isc.Canvas.showPrintPreview in my application for ListGrids. Sometimes the data behind the ListGrid will be small and thus .showPrintPreview will display all the records, great.
Sometimes, however, the dataset is large and is paged in the ListGrid. In this case, I would like to warn the user that Print Preview will not show all the records. To do that, I need to figure out how many total records exist in the database (which I can do) and also how many records will be produced when showPrintPreview is invoked. This is the tricky part. So far I have tried:
Sometimes, however, the dataset is large and is paged in the ListGrid. In this case, I would like to warn the user that Print Preview will not show all the records. To do that, I need to figure out how many total records exist in the database (which I can do) and also how many records will be produced when showPrintPreview is invoked. This is the tricky part. So far I have tried:
- getTotalRows() - This gets me the total number of rows in the recordset, too many
- getVisibleRows() - This gets me the number of rows that you can actually see on the screen, not as many that will be produced with .showPrintPreview
- getDrawnRows() - Similar to getVisibleRows(), number is lower than what will be produced with .showPrintPreview
Comment