Announcement

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

    HeaderSpan in PrintPreview

    The headerspan titles are not showing up when I try to print the document in smartgwt would anyone know how I would fix this?

    #2
    any one else fixed it?

    Comment


      #3
      headerspans are still sort of busted. they show up - but if the first few fields do not have headerspans, then the top (headerspan row) is shifted left - so the headerspans appear over fields that should not have them (and there is a gap at the end)

      this is using the Simplicity skin and SC_SNAPSHOT-2011-06-06/Pro Deployment 2011-06-06

      Comment


        #4
        Is this happening for you in a sample? If so which one?

        Have you made sure you're not applying any of your own CSS styles to the headerSpans?

        Comment


          #5
          You're right, your showcase example print preview is fine.

          I suspect the fact that the first columns are setFrozen(true) may be a factor.

          Comment


            #6
            Also, in my case, the first columns have no headerSpan at all.

            When I get a moment, I'll make a test case.

            Comment


              #7
              Originally posted by atomatom
              Also, in my case, the first columns have no headerSpan at all.

              When I get a moment, I'll make a test case.

              I have same issue。。。
              Attached Files
              Last edited by yyzjlx; 16 May 2012, 17:59.

              Comment


                #8
                I ended up handling this by creating an additional grid that sat on top of the first grid.

                Comment


                  #9
                  Originally posted by atomatom
                  I ended up handling this by creating an additional grid that sat on top of the first grid.
                  how to do?give an example

                  Comment


                    #10
                    I did this a while ago, but from my memory what I did was something like

                    Code:
                      headerGrid.setHeight(22);  //not sure if this is the right height.  this hides the headergrid body
                    
                      headerGrid.setFields(headerFields);
                      listgrid.setFields(listGridFields);
                      
                      vLayout.addMember(headerGrid)
                      vLayout.addMember(listGrid)
                    That said, I think instead of setHeight, you can now call ListGrid.setGridComponents and remove the body of the headergrid that way. It may even be possible to add an extra header in with that call as well. Not sure.

                    Comment

                    Working...
                    X