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

ToolbarVisible

1 Answer 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 09 Aug 2011, 08:56 PM
I have a ReporViewer and a bunch of reports.  There are a couple reports where I don't want the toolbar visible. (reportViewer.ToolbarVisible = false).  When switching reports in code, I can set the visibility of the toolbar just fine. But I can't figure out how to set the visibility when switching reports using either the navigation buttons (forward/back) or when a report is viewed by clicking on a link (textbox with Navigate action) in another report.

Is there a way to set the ReportViewer's ToolbarVisibility from within a report?  Or is there an event in the ReportViewer that fires when the Report property is changed?

Thanks,
Justin

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 10 Aug 2011, 12:21 PM
Hello Justin,

There is no event fired when you use the navigation or in fact any of the actions from the report viewer, thus what you're trying to achieve cannot be handled out of the box. What you can do is implement your own UI (Toolbar) and hide it/show it as you find appropriate. You can use the following blog post as starting point if you decide to go this route.

Greetings,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or