Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    List Grid in a Canvas Printing

    Hi Team,

    We have ListGrid with 600 rows in the database and we are showing all the rows to the user.

    When the user tries to print we are using the Canvas print option in which the ListGrid is present.

    But in the print preview not all rows are getting displayed rather only few rows are getting displayed and only those rows are being printed.

    What should I do to make it print all the rows while priting the canvas.
    Is there any property present so that I could set it and it considers while priting?

    We are working on the below environment:
    SmartClient version : Isomorphic SmartClient/SmartGWT Framework (9.1p_2014-10-26/PowerEdition Deployment 2014-10-26)

    Browser : IE9

    Thanks in advance.

    #2
    What is printed is the loaded rows. Clearly, data paging is active and only some of the rows are actually loaded.

    If you want to force all rows to be loaded before printing starts, it's sufficient to call resultSet.getRange(0, maxRow) and wait for the next dataArrived event, then print after it fires.

    Keep in mind that this does, of course, actually load all rows. So this may not be a viable approach if there are several thousand or more.

    Comment

    Working...
    X