I cannot seem to get the toggle visibility action for detail or group sections to work in the newest version. I see in the release notes that IToggleVisibilityTarget and ToggleVisibilityTargetCollection are now obsolete and deprecated. I made sure that the report I'm working on is not using those. It is using the IActionTarget. It works fine for textboxes within the same report section, but it does nothing when you try to have a detail or group section toggled. Here is a code snippet:
Telerik.Reporting.ToggleVisibilityAction toggleVisibilityAction1 = new Telerik.Reporting.ToggleVisibilityAction();
toggleVisibilityAction1.DisplayExpandedMark = false;
toggleVisibilityAction1.Targets.AddRange(new Telerik.Reporting.IActionTarget[] {this.detail});
this.textBox5.Action = toggleVisibilityAction1;
This is also isn't working for groupHeaderSection/groupFooterSection, whereas it was working fine in the previous version.
I have the detail section visibility set to false. When I click the expand option it processes the report again and the toggle mark goes from + to -, but the detail section is not visible. Is there something wrong on my end or is there a known issue?
Thanks