Announcement

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

    ListGridField.shouldPrint doesn't work right

    SmartClient v9.0p_2013-09-22/Pro Deployment (built 2013-09-22) - Firefox 24

    We're using the shouldPrint property on a listGrid field to try to keep it from printing when we use the isc.Canvas.showPrintPreview() function.

    What happens is that the column header for the field still shows in the grid, but the column is hidden, which causes all the headers to be shifted.

    Attached test case illustrates the problem, but here's a snippet:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224, alternateRecordStyles:true,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"http://www.smartclient.com/docs/9.0/a/system/reference/exampleImages/flags/16/", 
            imageURLSuffix:".png",
            shouldPrint: false},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital", showIf:"false"},
            {name:"continent", title:"Continent"}
        ],
        canReorderFields: true
    })
    
    
    isc.IButton.create({
        left:0, top:240,
        title:"Print Grid",
        click:"isc.Canvas.showPrintPreview([countryList]);"
    })
    Attached Files

    #2
    Can you check this against the latest patched build? This sounds like a recently corrected bug.

    Comment


      #3
      It works!

      Originally posted by Isomorphic View Post
      Can you check this against the latest patched build? This sounds like a recently corrected bug.
      The 10/23 build did fix this problem for us. Thanks.

      Comment

      Working...
      X