默认情况下,即使未使用,Web窗体上的Crystal Viewer也会显示其“组树”面板已展开。我希望查看器在默认情况下折叠“组树”面板时显示。我可以这样做吗?
答案 0 :(得分:0)
您可能会对此链接感兴趣
http://www.codeproject.com/Tips/207643/Hide-Report-Group-Tree-in-WPF
或者您可以使用以下内容完全隐藏它:
[Visual Basic]
CrystalReportViewer1.DisplayGroupTree() = True
<强> [C#] 强>
crystalReportViewer1.DisplayGroupTree = true;
<强> [C ++] 强>
crystalReportViewer1->DisplayGroupTree = true;
<强> [VJ#] 强>
crystalReportViewer1.set_DisplayGroupTree(true);
答案 1 :(得分:0)
使用Jquery:
$(document).ready(function() {
$("[id$=panelHeader_close]").click();
});