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
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.