Hi,
I want to print a radgrid from client side, and am using the code below. it is working fine.But, one of the column is having textarea control. So it is printing the textarea, instead i want to print text inside that control in that column. can we do it with some javascript? Thanks in advance.
var previewWnd = window.open('about:blank', '', '', false);
var sh = '<%= Page.ClientScript.GetWebResourceUrl(GridData.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",GridData.Skin)) %>';
var styleStr = "<html><head><link href='" + sh + "' rel='stylesheet' type='text/css' /></head>";
var htmlcontent = styleStr + "<body>" + $find('<%= GridData.ClientID %>').get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
I want to print a radgrid from client side, and am using the code below. it is working fine.But, one of the column is having textarea control. So it is printing the textarea, instead i want to print text inside that control in that column. can we do it with some javascript? Thanks in advance.
var previewWnd = window.open('about:blank', '', '', false);
var sh = '<%= Page.ClientScript.GetWebResourceUrl(GridData.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",GridData.Skin)) %>';
var styleStr = "<html><head><link href='" + sh + "' rel='stylesheet' type='text/css' /></head>";
var htmlcontent = styleStr + "<body>" + $find('<%= GridData.ClientID %>').get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();