hi
Just like what we have a Print Preview option in WinForms,I need to open a Print Preview page from UltraWebGird, is it possible ..
regards
winnie
this.Parent.Page.RegisterStartupScript("Script", script);
What exactly are the parameters to be passed. When i used this code , i'm getting an error in the above line .If i overcome it , i can resolve my issue.
Thanks in Advance
i'm als facing the same prob... after printing method s called, the functionality of Ultrawebgrid is not working. pls suggest me way to solve this..
Thanks a lot Vince, that was of great help!
-- Anuj
Roberto12cr said:I think that when i set the grid to printfriendly all the javascript are disabled
That said, I don't expect an exception to be thrown on mouse movement. When set for printer-friendly output, the grid should not be hooking up any of its client-side events, even the internal ones.
Using server-side code to register JavaScript to open a new window for your printer-friendly results may itself be the cause of this issue. I recommend using either a dedicated "printer-friendly" page, or use a query-string option on your existing page to specify using printer-friendly options.
I tryed this code to print the grid,
---------------------------------------------------------------------------------------------------------------------------------------------
void printButton_Click(object sender, EventArgs e) { _gridControl.Browser = Infragistics.WebUI.UltraWebGrid.BrowserLevel.DownLevel; _gridControl.DisplayLayout.LoadOnDemand = LoadOnDemand.NotSet; _gridControl.DisplayLayout.ReadOnly = ReadOnly.PrintingFriendly; string script = "<script language=javascript> " + " var prtContent = document.getElementById('" + div.ClientID + "'); " + " var WinPrint = window.open(); " + " WinPrint.document.write(prtContent.innerHTML); " + " WinPrint.document.close(); " + " WinPrint.print(); " + " WinPrint.close(); " + "</script> "; this.Parent.Page.RegisterStartupScript("Script", script); }
it show the grid in a new window but if I move the mouse over the new window I get a Javascript error on this event
onmousemove='igtbl_cellMouseMove(event,"wpmxwp986637087xTabControlxxctl2xGridControl");
I think that when i set the grid to printfriendly all the javascript are disabled
?