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:
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]);" })
Comment