Hello,
I am trying to print just my RadHtmlChart using JavaScript but when I press the event button to activate the script the chart disappears, the components I want to hide successfully hide. I specifically state in my JavaScript code to only hide 2 other components but keep the chart. Also, when I cancel the prompt to print all of the components stay hidden, instead of being shown. Here is my code:
01.<script type="text/javascript">02. function printChart() {03. //Hide components but show chart04. document.getElementById("divGrid").style.display = 'none';05. document.getElementById("divOptions").style.display = 'none';06. document.getElementById("divChart").style.display = 'block';07. 08. //Call the browser print method09. window.print();10. 11. //Show components12. document.getElementById("divGrid").style.display = 'block';13. document.getElementById("divOptions").style.display = 'block';14. document.getElementById("divChart").style.display = 'block';15.</script>
Thank you in advance!
