Announcement

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

    Controlling cell styling on print preview

    Greetings,

    I'm using version 8. I've got a treeGrid where I'm doing some custom styling. I also have a print preview of this treegrid, but I don't want the custom styling to show on the printpreview (or the printing). How can I change (remove) the styling for print preview?

    Code:
    getCellCSSText: function (record, rowNum, colNum) {
    	        if (colNum == 1){
    				return "color:#061727; text-decoration:underline; cursor:pointer; cursor:hand;";
    	        }else if (colNum == 1){
    				if (record.group_code > 0) {
    					return "color:#061727; text-decoration:underline; cursor:pointer; cursor:hand;";
    				}
    	        }
        	},

    #2
    You can check this.isPrinting (a boolean field) and not run your logic if isPrinting is true to avoid affecting the printed output.

    Comment


      #3
      That worked well, thanks.

      Comment

      Working...
      X