• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ToggleVisibilityAction

Represents an interactive action that toggles the visibility of one or more items / groups.

Inheritance
System.Object
ToggleVisibilityAction
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll

Syntax

public class ToggleVisibilityAction : IAction, IEquatable<ToggleVisibilityAction>, IActionWithTargets
Remarks

Use this action to specify an interactive action on a report item that toggles the visibility of one or more items / groups (drilldown).

When this action is set on an item, the item is rendered with an expand / collapse mark in all report viewers. Clicking on that mark triggers the action.

Constructors

ToggleVisibilityAction()

Creates a new instance of the ToggleVisibilityAction class.

Declaration
public ToggleVisibilityAction()

ToggleVisibilityAction(IActionTarget, Boolean)

Creates a new instance of the ToggleVisibilityAction class with the specified toggle visibility target and initial toggle mark state.

Declaration
public ToggleVisibilityAction(IActionTarget target, bool displayExpandedMark)
Parameters
IActionTarget target

The Name GroupBase.Name of the toggle visibility target.

System.Boolean displayExpandedMark

The initial toggle visibility mark of the item.

ToggleVisibilityAction(IActionTarget[], Boolean)

Creates a new instance of the ToggleVisibilityAction class with specified toggle visibility targets and initial toggle mark state.

Declaration
public ToggleVisibilityAction(IActionTarget[] targets, bool displayExpandedMark)
Parameters
IActionTarget[] targets

An enumerable of Name GroupBase.Name of the toggle visibility targets.

System.Boolean displayExpandedMark

The initial toggle visibility mark of the item.

Properties

DisplayExpandedMark

Determines if the item exposing the action will be rendered initially with expanded or with collapsed mark.

Declaration
public bool DisplayExpandedMark { get; set; }
Property Value
System.Boolean

Remarks

A true value will determine an expanded mark to be rendered (minus sign). A false value will determine an collapsed mark to be rendered (plus sign).

Targets

Gets the list of toggle targets which visibility will be toggled when the action is triggered.

Declaration
public ActionTargetCollection Targets { get; }
Property Value
ActionTargetCollection

Remarks

Use this property to add / remove toggle targets of the action. To add an item / report group / table group as toggle target you need to add / remove the value of the Name / GroupBase.Name GroupBase.Name of the target respectively. The used names must be unique in the report scope.

The items in this list do not accept expressions.

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

Equals(ToggleVisibilityAction)

Declaration
public bool Equals(ToggleVisibilityAction other)
Parameters
ToggleVisibilityAction other

Returns
System.Boolean

Implements
System.IEquatable<T>.Equals(T)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.