Hey,
We have upgraded the telerik reporting to Q1 2013 and since this update a table with dynamic columns has the wrong data.
These columns are added programmaticly and when debuggen the columns are added to the tblOccupancy. When the view is rendered the table has the correct headers but all columns contain the value of the first column and not the value it should show. Before the upgrade this worked.
The attached image shows the result. The value marked in yellow should be a1, a2, ...
Sodi we
We have upgraded the telerik reporting to Q1 2013 and since this update a table with dynamic columns has the wrong data.
These columns are added programmaticly and when debuggen the columns are added to the tblOccupancy. When the view is rendered the table has the correct headers but all columns contain the value of the first column and not the value it should show. Before the upgrade this worked.
The attached image shows the result. The value marked in yellow should be a1, a2, ...
for (DateTime date = startDate.AddDays(-1); date <= endDate ; date = date.AddDays(1)) { TableGroup tableGroupColumn = new TableGroup(); tblOccupancy.ColumnGroups.Add(tableGroupColumn); tblOccupancy.Body.Columns.Add(new TableBodyColumn(Unit.Inch(0.01))); Telerik.Reporting.TextBox textBoxGroup = new Telerik.Reporting.TextBox(); if (i == 1) { textBoxGroup.Value = "Medewerker"; textBoxGroup.Size = new SizeU(Unit.Inch(2), Unit.Inch(0.3)); } else { textBoxGroup.Value = date.ToString("ddd dd-MM"); textBoxGroup.Size = new SizeU(Unit.Inch(0.7), Unit.Inch(0.3)); } textBoxGroup.Style.BackgroundColor = Color.FromArgb(220, 231, 245); textBoxGroup.Style.Font.Bold = true; textBoxGroup.Style.VerticalAlign = VerticalAlign.Middle; textBoxGroup.Style.BorderColor.Default = Color.FromArgb(27, 149, 203); textBoxGroup.Style.BorderStyle.Default = BorderType.Solid; tableGroupColumn.ReportItem = textBoxGroup; Telerik.Reporting.TextBox textBoxTable = new Telerik.Reporting.TextBox(); if (i == 1) { textBoxTable.Value = "=Fields.EmployeeName"; } else { textBoxTable.ItemDataBinding += new EventHandler(textBoxTable_ItemDataBinding); if (date.DayOfWeek == DayOfWeek.Saturday || date.DayOfWeek == DayOfWeek.Sunday) { textBoxTable.Style.BackgroundColor = Color.FromArgb(255, 194, 194, 194); } textBoxTable.Name = i - 1 + ""; textBoxTable.Value = "a" + i;// "=Anton.Server.Reports.ReportGenerator.GetValueFromDictionaryById(Fields.ValueForDay," + (i - 1) + ")"; } textBoxTable.Style.BorderColor.Default = Color.FromArgb(27, 149, 203); textBoxTable.Style.BorderStyle.Default = BorderType.Solid; textBoxTable.Style.BorderWidth.Default = new Unit(0.5, UnitType.Point); textBoxTable.Style.VerticalAlign = VerticalAlign.Middle; textBoxTable.Size = new SizeU(Unit.Inch(0.01), Unit.Inch(0.2)); tblOccupancy.Body.SetCellContent(0, i - 1, textBoxTable); tblOccupancy.Items.AddRange(new ReportItemBase[] { textBoxTable, textBoxGroup }); i++; }Sodi we