Announcement

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

    Repeating headers for TreeGrid printing

    Hi there

    I am trying to print a treegrid on multiple pages with repeating column headers on each page.

    For listgrids this has been fine because I can create multiple smaller listgrids from the larger grid (getRange()...) and call getPrintHTML() on each of those. 1 Listgrid per page to get the repeating headers effect.

    I would like to try something similar with treegrids. I found that I couldn't create a bunch of smaller treegrids to hold the results from getRange(). But when i put the results from getRange into listgrids this did work.

    The only problem with putting the results into listgrids is that the indentation on the tree column is lost.

    I would like to somehow keep this indentation when providing the data to the listgrids. OR Is there a way to use smaller treegrids instead of listgrids, where these smaller treegrids will accept that certains parent rows might not be present?

    #2
    We don't have support for a partial tree with dangling parentless nodes, but you could easily created equivalent indent in a ListGrid just using formatCellValue() - use Tree.getLevel() to discover the indent level.

    Comment


      #3
      Thanks that'll do nicely.

      Comment

      Working...
      X