hi,
i have the following situation, working report with some input parameters and defined groups in report.
When i add new parameter on report, code for my groups in designer.cs file disappears. When i try access them in code they always trow null Exception.
I have some code in report ItemDataBinding event for group manipulation.
example:
i have the following situation, working report with some input parameters and defined groups in report.
When i add new parameter on report, code for my groups in designer.cs file disappears. When i try access them in code they always trow null Exception.
I have some code in report ItemDataBinding event for group manipulation.
example:
if (!string.IsNullOrWhiteSpace((string)ReportParameters["DatumOd"].Value) && !string.IsNullOrWhiteSpace((string)ReportParameters["DatumDo"].Value)) { this.group2.Groupings.Clear(); this.group2.Groupings.AddRange(new Telerik.Reporting.Grouping[] { new Telerik.Reporting.Grouping("=Fields.Sifra") }); //this.group2.Sortings.AddRange(new Telerik.Reporting.Sorting[] { new Telerik.Reporting.Sorting("=", Telerik.Reporting.SortDirection.Asc) }); this.groupFooterSection2.Visible = false; } else if (!string.IsNullOrWhiteSpace((string)ReportParameters["RazdobljeOd"].Value) && !string.IsNullOrWhiteSpace((string)ReportParameters["RazdobljeDo"].Value)) { this.group2.Groupings.Clear(); this.group2.Groupings.AddRange(new Telerik.Reporting.Grouping[] { new Telerik.Reporting.Grouping("=Fields.Razdoblje") }); //this.group2.Sortings.AddRange(new Telerik.Reporting.Sorting[] { new Telerik.Reporting.Sorting("=", Telerik.Reporting.SortDirection.Asc) }); }