Hi all,
I am using below code from one of the threads. This works fine for me except that in one of the tabs there are textboxes outside the visible page area and are reachable via horizontal scrollbars. I have tried to print the overflow content by following modifications however it is not working:
temp.find(".ajax__tab_panel").css("display", "block").css("visibility", "visible").css("width", "auto").css("height", "auto").css("overflow", "visible !important");
Kindly help.
Regards,
Raj.
<scriptsrc="http://code.jquery.com/jquery-1.9.1.js"></script><script>$(function(){//print when click the button.. $("#Button1").click(function(){var temp =$("div").html($(".ajax__tab_body").html()); temp.find(".ajax__tab_panel").css("display","block").css("visibility","visible");PrintElem(temp);});})</script><scripttype="text/javascript">functionPrintElem(elem){Popup($(elem).html());}functionPopup(data){var mywindow = window.open('','my div','height=400,width=600'); mywindow.document.write('<html><head><title>my div</title>');/*optional stylesheet*///mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />'); mywindow.document.write('</head><body >'); mywindow.document.write(data); mywindow.document.write('</body></html>'); mywindow.print(); mywindow.close();returntrue;}</script><inputid="Button1"type="button"value="Print"/><asp:TabContainerID="TabContainer1"runat="server"Width="200px"><asp:TabPanelrunat="server"ID="Panel1"><HeaderTemplate>Panel1</HeaderTemplate><ContentTemplate> I'm panel 1</ContentTemplate></asp:TabPanel><asp:TabPanelrunat="server"ID="Panel2"><HeaderTemplate>Panel2</HeaderTemplate><ContentTemplate> I'm panel 2</ContentTemplate></asp:TabPanel><asp:TabPanelrunat="server"ID="Panel3"><HeaderTemplate>Panel3</HeaderTemplate><ContentTemplate> I'm panel 3</ContentTemplate></asp:TabPanel><asp:TabPanelrunat="server"ID="Panel4"><HeaderTemplate>Panel4</HeaderTemplate><ContentTemplate> I'm panel 5</ContentTemplate></asp:TabPanel><asp:TabPanelrunat="server"ID="Panel5"><HeaderTemplate>Panel5</HeaderTemplate><ContentTemplate> I'm panel 5</ContentTemplate></asp:TabPanel><asp:TabPanelrunat="server"ID="Panel6"><HeaderTemplate>Panel6</HeaderTemplate><ContentTemplate> I'm panel 6</ContentTemplate></asp:TabPanel></asp:TabContainer>
↧
Ajax Tab overflow content not getting printed
↧