Here is what I am using. I have been switching things up to make it work but I keep getting undefined. Am I just missing something here?
$(“#print”).jqxButton({ width: 80, theme: “energyblue” });
$(“#print”).click(function () {
var gridContent = $(“#treeGrid”).jqxTreeGrid(“exportData”, “html”);
var newWindow = window.open(“”, “”, “width=800, height=500”),
document = newWindow.document.open(),
pageContent = “<!DOCTYPE html>” +
“<html>” + “<head>” +
“<meta charset=”utf-8” />” +
“<title>IPTask Tracker</title>” +
“<body>” + gridContent + “</body>”+”</head>”+”</html>”;
document.write(pageContent);
document.close();
newWindow.print();