SSRS 2008 - How to hide the plus icon in a group visibility toggle cell

允我心安 提交于 2020-01-03 18:52:46

问题


I have a report that shows or hides columns in a group based on a header cell. SSRS makes this pretty easy and is kind enough to place a little plus/minus icon in the toggling cell.

I want to HIDE this plus/minus icon when there is only one column of data in the subgroup, because it shows that one column by default so expanding the group doesn't do anything.

This really only applies to one specific group, because all the others always have more than one column of data, so a way to hide only the icon for a specific group would be fine. JavaScript won't work (I don't think) because the client ID of the plus/minus image is generated by the report and changes with each generation.

see this image for more clarity: http://imgur.com/vqaQA.png


回答1:


What I usually do is create a narrow column just to the left of the column that the header cell is in and set the cell to the left of the header cell to be the ToggleItem. You can then set the Hidden property of that cell with an expression based on the count.




回答2:


I have had similar problem with "plus" sign in my report. And I solved it this way:




回答3:


This won't be possible. To achieve what you need, the "Display can be toggled by this report item" setting would need to be expression-based. But unfortunately that's not the case.



来源:https://stackoverflow.com/questions/2822276/ssrs-2008-how-to-hide-the-plus-icon-in-a-group-visibility-toggle-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!