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

Hiding the Toolbar

1 Answer 283 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raventhorn
Top achievements
Rank 2
Raventhorn asked on 24 Jun 2009, 03:38 PM
I read earlier last year that you could not hide the toolbar in the ReportView control...is this still the case in the latest builds of the product? Also, is it possible to get the control not to display any scrollbars but the contents of the report, as is?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jun 2009, 09:09 AM
Hi Armysniper,

I'm not sure where you've found such information but it is incorrect - you can control the visibility of the Toolbar through the following properties ShowExportGroup="False" ShowNavigationGroup="False" ShowParametersButton="False" ShowPrintButton="False" ShowRefreshButton="False" ShowZoomSelect="False".
Another option is doing this through the DOM tree like any other standard .NET control e.g.:

<script type="text/javascript">
            var viewer = <%=ReportViewer1.ClientID%>;
            var RPToolbar = document.getElementById(viewer.toolbarID);
            RPToolbar.style.display = "none";
 </script>

If you're referring to the Windows forms viewer - you can use the ToolbarVisible property directly.
Your second inquiry sounds like you would want the viewer to resize itself according to the report size which is not possible. If you want to avoid scrollbars, make sure the reportViewer's width is always greater than the report width.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Raventhorn
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or