How to hide Crystal Report group tree in WPF?

I am using VS2010 and Crystal Reports 13.

Is there a way to collapse / hide the group tree field that appears on the left side of my generated report? I saw a couple of suggested solutions, but no one works for me.

Thanks in advance.

+5
source share
8 answers

I finally found a solution that works by manually detecting the sidebar and then hiding it:

var sidepanel = crystalReportsViewer1.FindName("btnToggleSidePanel") as ToggleButton;
if (sidepanel != null) {
    crystalReportsViewer1.ViewChange += (x, y) => sidepanel.IsChecked = false;
}

adding this namespace:

using System.Windows.Controls.Primitives;

The problem was that WPF ReportViewer is slightly different from Win Forms, some properties (such as ToolPanelView and ShowGroupTreeButton) were removed, I tried many different things, but above all, the only thing that did the trick.

+6

, :

yourViewer.ToggleSidePanel = Constants.SidePanelKind.None;

, , Crystal Reports .

+8

, "ToolPanelView" "" , "ShowGroupTreeButton" "false". , , . :

crystalreportviewer.ToolPanelView = TooPanelViewType.None;
crystalreportviewer.ShowGroupTreeButton = false;
+5

DisplayGroupTree. ,

CrystalReportViewer1.DisplayGroupTree = false;

CrystalReportViewer1.HasToggleGroupTreeButton = false;

+3

, .

CrystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None

I ran into the same issue as Crystal Report. In the old version of the Crystal report, hide the button and do not display the panel on the left side. CrystalReportViewer1.ShowGroupTreeButton = False

+1
source
<Viewer:CrystalReportsViewer  ToggleSidePanel="None"/>
0
source

Use the following properties on your web page:

- ToolPanelView="None"
- HasToggleGroupTreeButton="false"

<CR:CrystalReportViewer ID="CRViewer" runat="server" HasCrystalLogo="False" ToolPanelView="None" HasToggleGroupTreeButton="false" BestFitPage="True" AutoDataBind="true"  />

The group tree panel and its switch will be hidden. It works well in my environment - ASP.Net 4.0, Crystal Report version 13.0.13

0
source

For asp.net

    CrystalReportViewer1.ToolPanelView=CrystalDecisions.Web.ToolPanelViewType.None;
0
source

All Articles