This is a migrated thread and some comments may be shown as answers.

Master and two detail subreports

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
yj
Top achievements
Rank 1
yj asked on 18 Aug 2015, 02:49 AM

Hi Everyone,

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!

1 Answer, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 20 Aug 2015, 08:28 AM
Hello,

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
Tags
General Discussions
Asked by
yj
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Share this question
or