Hiding Items and Toggle Items


Hiding and toggling items handles interactive visibility for sections of a report and allows you to dynamically expand portions of a report that you want to see. This is yet another option to simplify navigation. Hide and toggle functionality can be used, for example, to implement master/detail functionality, category/ subcategory functionality, or to simply shorten a large report.

To implement this functionality, set an InitialToggleState property. The InitialToggleState property indicates an image that is displayed for a toggle item: Collapsed , Expanded , or Expression . Normally, toggle control is a picture of a plus or minus sign, which indicates an expanded or collapsed state, respectively. InitialToggleState property just defines a picture of a state image, but does not change the visibility of an item. If not specified, the default toggle state is collapsed. If a developer clears an initial state property, it reverts back to collapsed.

Note

Note that the toggle state is not available for groups. It is only available for individual items.


Reporting Services adds the following RDL (if the item is visible, the <Hidden >tag is not included):

 <Visibility>   <ToggleItem>{ToggleItem}</ToggleItem>   <Hidden>={Expression}or {true}</Hidden>  </Visibility> 

Note

An example of a toggling and hiding items is included as a sample report: Actions -- Bookmark.Toggle.Document Map. -- Products.rdl .




Microsoft SQL Server 2005 Reporting Services
Microsoft SQL Server 2005 Reporting Services
ISBN: 0672327996
EAN: 2147483647
Year: 2004
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net