for Collapsed radtree:
function PrintMe(node) {
var content = node.innerHTML;
var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');
pwin.document.open();
pwin.document.write(
'<html><body onload="window.print()">' + content + '</body></html>');
pwin.document.close();
setTimeout(
function () { pwin.close(); }, 1000);
}
for Expanded Radtree:
function printSelection(node) {
var treeView = $find("<%= rdTreeDetails.ClientID %>");
var nodes = treeView.get_allNodes();
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].get_nodes() != null) {
if (nodes[i].get_nodes().get_count() != 0) {
nodes[i].expand();
}
}
}
var content = node.innerHTML;
var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');
pwin.document.open();
pwin.document.write(
'<html><body onload="window.print()">' + content + '</body></html>');
pwin.document.close();
setTimeout(
function () { pwin.close(); }, 1000);
for (var j = 0; j < nodes.length; j++) {
if (nodes[j].get_nodes() != null) {
if (nodes[j].get_nodes().get_count() != 0) {
nodes[j].collapse();
}
}
}
}
What can be done to print it expanded in firefox?