skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class ToggleVisibilityAction

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

Inheritance
System.Object
ToggleVisibilityAction
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

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()
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.