C1 C2 C3 C4AAA Blue 5 10 6 20AAA Yellow 2 10 BBB Green 3 20C1 C2 C3 C4AAA Blue 5 10 6 20 AAA Yellow 2 10 BBB Green 3 20Hi,
Couple of issues.
I installed reporting using and upgraded the project using the wizard.
When I try to open a report in design mode I get the problem shown in capture2.jpg which is trying to find a prior versioned dll.
Also one of reports has parameters that the viewer prompts for at runtime. the report will take the parameter but the following code that has always run in the past no longer runs:
private void RptADASummary_ItemDataBinding(object sender, EventArgs e) { if (txtStartDate.Value == string.Empty) { SchoolMonth _schoolMonth = SchoolMonthService.GetByID(Int32.Parse(this.ReportParameters["SchoolMonthID"].Value.ToString())); txtMonthNumber.Value = _schoolMonth.SchoolMonthNumber.ToString(); txtStartDate.Value = _schoolMonth.StartDate.ToShortDateString(); txtEndDate.Value = _schoolMonth.EndDate.ToShortDateString(); } }.ReportParameters["SchoolMonthID"].Value" is null. This code has always compliled and run fine until the most recent upgrade. has anything changed how one can access parameters in the report? If I take out the contents of this function, the report runs fine but is missing the text boxes. see capture1.jpg
Thanks,
Jonathan
Is there a way to initially toggle visibility conditionally? I have a report that a grouping toggles the detail visibility, Everything works fine I can either have the report completely expanded, everything visible, or I can have the report open with all the Details section invisible. What I would like would be for the report to open with only one specified grouping already expanded while the other are still invisible, and then have the toggle function normally after that. Is this possible, I have played with the conditional formatting but whatever I have the detail section visibility section set to over rides the conditional, and once the conditional is set the toggle will no longer properly work.
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Telerik.Reporting.ReportSource>" %> <%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %><%@ Register Assembly="Telerik.Reporting, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.Reporting" TagPrefix="telerik" %> <!DOCTYPE html><html> <head> <%--<link rel="stylesheet" type="text/css" href="/Telerik.ReportViewer.axd?optype=Resource&version=6.2.13.110&name=Skins.Metro.ReportViewer.css">--%> </head> <body> <script runat="server"> public override void VerifyRenderingInServerForm(Control control) { // to avoid the server form (<form runat="server"> requirement } protected override void OnLoad(EventArgs e) { base.OnLoad(e); EReportViewer.ReportSource = Model; } </script> <form id="main" method="post" action=""> <div id="repcontent"> <telerik:ReportViewer ID="EReportViewer" Width="100%" Height="750" runat="server" Font-Names="Segoe UI" Font-Size="Small" ShowHistoryButtons="false" ZoomMode="FullPage" DocumentMapVisible="false" ParametersAreaVisible="false" ShowParametersButton="false" ShowRefreshButton="false" ProgressText="Generating report" ViewMode="PrintPreview" EnableViewState="false" > </telerik:ReportViewer> </div> </form> </body></html><?xml version="1.0"?><configuration> <appSettings> <add key="Telerik.Skin" value="Metro"/> <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/> <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/> </appSettings> <system.web> <compilation debug="false" targetFramework="4.5"> <assemblies> <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/> <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/> <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Telerik.Reporting, Version=6.2.13.110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/> </assemblies> </compilation> <httpRuntime targetFramework="4.5"/> <pages> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> </controls> </pages> <httpHandlers> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/> </httpHandlers> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/> </httpModules> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="RadUploadModule"/> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/> <remove name="RadCompression"/> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/> </modules> <handlers> <remove name="ChartImage_axd"/> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_DialogHandler_aspx"/> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_RadUploadProgressHandler_ashx"/> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/> <remove name="Telerik_Web_UI_WebResource_axd"/> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/> <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/> </handlers> <validation validateIntegratedModeConfiguration="false"/> </system.webServer></configuration>
DataTable
dtStudent = new DataTable();
dtStudent.Columns.Add(
"Date", typeof(DateTime));
dtStudent.Columns.Add(
"Group", typeof(string));
dtStudent.Columns.Add(
"Score", typeof(double));
dtStudent.Rows.Add(
"2013-01-12", "Drawing", 25.0);
dtStudent.Rows.Add(
"2013-01-12", "Music", 10.0);
//date2
dtStudent.Rows.Add(
"2013-01-13", "Drawing", 30.0);
dtStudent.Rows.Add(
"2013-01-13", "Music", 11.0);
//date3
dtStudent.Rows.Add(
"2013-01-14", "Drawing", 28.0);
dtStudent.Rows.Add(
"2013-01-11", "Dance", 40.0);