I have a master report and two subreports. Initially, the master report and one subreport will be displayed. Upon clicking a textbox("ShowDetails") on the first subreport, I need to display the second subreport and hide the first subreport. How can I make it work please? TIA!
Usually the ToggleVisibility Action is used to control the report items visibility, but in your scenario the goal is to control the visibility of two items at the same time. That's why we can suggest you to create a report parameter in your main report that determines which one of the subreports is visible. The visibility of the subreports is set through Bindings.
When the user clicks the textbox in the first subreport, it initiates a NavigateToReport action to the main report, setting the parameter value to 2, which means "hide the first subreport and make the second one visible". In the same manner you can add a textbox with a similar action in the second subreport just to return the main report in initial state.
We have prepared a small example that runs in Standalone Report Designer at contains three .trdx files. We hope you will find it useful.
Regards,
Ivan Hristov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items