or
We have discovered a problem in RadGrid design-time support in the Q1 2013 SP1 release. When you customize RadGrid using designer, the control will generate ColumnSettings="(Collection)" in the markup which will cause an exception.
The solution is to simply remove the markup shown above which will allow you to use the designer again.
Please excuse us for any inconvenience caused.
UseStaticHeaders="false"
and AllowColumnResize="true".

var WorkSp = (from a in db.dsworkdefinitions where a.Status != "DEl" select new { a.Workcode, a.Workname }).ToList(); Workdesc1.DataSource = WorkSp; Workdesc1.DataValueField = "Workcode"; Workdesc1.DataTextField = "Workname"; Workdesc1.DataBind(); string md = Projtext[0].workspecific.ToString(); string[] Projid = md.Split(','); for (int i = 0; i < Projid.Length; i++) { string val = Projid[i].ToString(); int m = 0; foreach (RadListBoxItem item1 in Workdesc1.Items) { string Md1 = Workdesc1.Items[m].Value; if (Md1 == val) { item1.Checked = true; } m++; } }


btnRunReport_Click(null, null);RadAjaxPanel1.ResponseScripts.Add("PrintRadGrid('" + gvReportUnit.ClientID + "')");
and on aspx pagefunction PrintRadGrid(radGridId) { var radGrid = $find(radGridId); var previewWnd = window.open('about:blank', '', '', false); var sh = '<%= ClientScript.GetWebResourceUrl(gvReportUnit.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",gvReportUnit.Skin)) %>'; var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>"; var htmlcontent = styleStr + "<body>" + radGrid.get_element().outerHTML + "</body></html>"; previewWnd.document.open(); previewWnd.document.write("<b><center>Custom Report</center></b>"); previewWnd.document.write(htmlcontent); previewWnd.document.close(); previewWnd.print(); previewWnd.close(); }it is opening a new window for print instead of opening a new window it should open a print pop up in which grid data should be filled in print popup Pankaj