New to Telerik ReportingStart a free 30-day trial

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

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class ToggleVisibilityAction : IAction

Inheritance: objectToggleVisibilityAction

Implements: IAction

Constructors

Creates a new instance of the ToggleVisibilityAction class.

C#
public ToggleVisibilityAction()

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

C#
public ToggleVisibilityAction(IActionTarget target, bool displayExpandedMark)
Parameters:targetIActionTarget

The Name of the toggle visibility target.

displayExpandedMarkbool

The initial toggle visibility mark of the item.

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

C#
public ToggleVisibilityAction(IActionTarget[] targets, bool displayExpandedMark)
Parameters:targetsIActionTarget[]

An enumerable of Name of the toggle visibility targets.

displayExpandedMarkbool

The initial toggle visibility mark of the item.

Properties

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

C#
public bool DisplayExpandedMark { get; set; }
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).

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

C#
public ActionTargetCollection Targets { get; }
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 / of the target respectively. The used names must be unique in the report scope.

The items in this list do not accept expressions.

Methods

TODO: Add documentation.

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

TODO: Add documentation.

C#
public bool Equals(ToggleVisibilityAction other)
Parameters:otherToggleVisibilityActionReturns:

bool

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()