ExpandGroup Action (Specific to Telerik RadGridView for WPF Controls)

Applies to TestComplete 14.74, last modified on March 31, 2021

Description

Depending on the Expand parameter, the ExpandGroup action expands or collapses the specified grid group. The effect is the same as when you click the “+” (or “-”) button of the group. However, the ExpandGroup action does not move the mouse cursor.

Declaration

TestObj.ExpandGroup(GroupExpand)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Group [in]    Required    Variant    
Expand [in]    Optional    Boolean Default value: True   
Result None

Applies To

The method is applied to the following object:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameters:

Group

The integer index or string name of the desired group. For more information, see the Remark section.

Expand

Specifies whether to expand or collapse the group.

Result Value

None.

Remarks

You can specify the desired control’s item by assigning group’s name or index to the Group parameter. Therefore, if this parameter holds a string, TestComplete identifies the item by name.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

If Group holds an integer value, then TestComplete treats the Group value as an index.

If the specified group is not found, ExpandGroup fails and posts an error message to the log.

The script recorder recognizes mouse clicks on the “+” buttons within the control groups and records the ExpandGroup command.

To collapse the group, you can either call the CollapseGroup action or call ExpandGroup with the Expand parameter set to False.

Example

To view an example that demonstrates how to use the ExpandGroup action, see Expanding and Collapsing Rows in Syncfusion GridGroupingControl.

See Also

Expand Action (Grid Controls)
Collapse Action (Grid Controls)
CollapseGroup Action (Specific to Telerik RadGridView for WPF Controls)

Highlight search results