ToggleGroupVisibility
Toggles the visibility of a group of rows in the table rendered for a ConfigurationPropertySection control.
Syntax
function ToggleGroupVisibility(groupName, parentTable, newDisplay, memberRowId)
Parameters
- groupName
- Type: String
The name of a group of rows.
- Type: String
The table for a ConfigurationPropertySection control. All rows within the specified control are evaluated.
- Type: String
The value to specify for the display attribute of each row in the specified group of rows.
- Type: String
The identifier of a row in a group of rows. If a value is specified for this parameter, the parentTable parameter is ignored and all rows within the parent control of the specified row are evaluated instead.
parentTable
newDisplay
memberRowId
Remarks
This function attempts to match the value specified in groupName to the value of the groupName attribute of a set of rows, either from the table specified in parentTable or from the parent of the row specified in memberRowId, and sets the display attribute of each matching row to the value specified in newDisplay.
Example
The following example demonstrates how to use this function to set the display attribute of a group of rows named groupOptions in a ConfigurationPropertySection control named MainControls1 to "none", in a JavaScript function for a custom workflow action.
ToggleGroupVisibility("groupOptions", document.getElementById("<%= MainControls1.ClientID %>"), 'none');
See Also
Concepts
Operations
Working with the ContentBody control