I'm currently converting an old proprietary reporting system to Telerik.
To convert the legacy reports, I programmatically build a Telerik Report and map each property from the legacy domain model to the Telerik one; this approach works, but I'm experiencing problems with visibility property.
In particular, I need to define blocks of report items that can be shown/hidden accordingly to an expression that depends on data from the DataSource; my approach is:
- define each row of the legacy report as a Telerik Reporting TextBox with CanGrow and CanShrink properties enabled, an Height of 1pica and Docking set to Top; I do not set any position for the row, because as I understood correctly, docking to top automatically stacks the items.
- define a Telerik Reporting Panel for each group of rows that I need to control visibility of; the properties set are the Height (which is set as the Height of all the contained TextBoxes), the Docking (which is set to Top) and the Bindings (which binds the "Visibility" path to a user-defined expression that returns a boolean); I do not set any position for the panel neither, because as I understood correctly, docking to top also skips hidden items when stacking items.
- add the rows to the panel, and the panels to the report section.
I actually tried both Binding (like said above) and Conditional formatting, but the panels are always hidden (even if I force my user-defined expression to return true or false). What am I doing wrong?