Announcement

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

    Export ListGrid to pdf with configurable columns

    I am using SmartGwt 4.1.
    we have canExport attribute on DataSourceField which we can set in datasource.ds.xml file. But this attribute is only applicable for xml/cvs/excel format.

    Currently i am using follwing line of code to export listgrid to pdf.
    Code:
     RPCManager.exportContent(listGrid, request)
    above code will export all columns to pdf. Is there any way where we can configure columns on pdf similar to other formats?

    #2
    Have you seen DSRequest.setExportFields()?

    Comment


      #3
      Yes, i tried that too but no luck. It works for all except pdf format.

      Comment


        #4
        See the doc for ListGridField.shouldPrint

        Comment


          #5
          It worked. Thanks :)

          Comment

          Working...
          X