function(oTable, oRef, bExpand) {
			var $Ref = jQuery(oRef);
			var $GroupRef;

			if ($Ref.hasClass("sapUiTableTreeIcon") || (TableGrouping.isTreeMode(oTable) && $Ref.hasClass("sapUiTableCellFirst"))) {
				$GroupRef = $Ref.closest("tr", oTable.getDomRef());
			} else {
				$GroupRef = $Ref.closest(".sapUiTableGroupHeader", oTable.getDomRef());
			}

			var oBinding = oTable.getBinding("rows");
			if ($GroupRef.length > 0 && oBinding) {
				var iGroupHeaderRowIndex = +$GroupRef.attr("data-sap-ui-rowindex");
				var oRow = oTable.getRows()[iGroupHeaderRowIndex];

				if (oRow) {
					var iAbsoluteRowIndex = oRow.getIndex();
					var bIsExpanded = TableGrouping.toggleGroupHeader(oTable, iAbsoluteRowIndex, bExpand);
					var bChanged = bIsExpanded === true || bIsExpanded === false;

					if (bChanged && oTable._onGroupHeaderChanged) {
						oTable._onGroupHeaderChanged(iAbsoluteRowIndex, bIsExpanded);
					}

					return bChanged;
				}
			}

			return false;
		}
function(oTable, oRef, bExpand) {
			var $Ref = jQuery(oRef);
			var $GroupRef;

			if ($Ref.hasClass("sapUiTableTreeIcon") || (TableGrouping.isTreeMode(oTable) && $Ref.hasClass("sapUiTableCellFirst"))) {
				$GroupRef = $Ref.closest("tr", oTable.getDomRef());
			} else {
				$GroupRef = $Ref.closest(".sapUiTableGroupHeader", oTable.getDomRef());
			}

			var oBinding = oTable.getBinding("rows");
			if ($GroupRef.length > 0 && oBinding) {
				var iGroupHeaderRowIndex = +$GroupRef.attr("data-sap-ui-rowindex");
				var oRow = oTable.getRows()[iGroupHeaderRowIndex];

				if (oRow) {
					var iAbsoluteRowIndex = oRow.getIndex();
					var bIsExpanded = TableGrouping.toggleGroupHeader(oTable, iAbsoluteRowIndex, bExpand);
					var bChanged = bIsExpanded === true || bIsExpanded === false;

					if (bChanged && oTable._onGroupHeaderChanged) {
						oTable._onGroupHeaderChanged(iAbsoluteRowIndex, bIsExpanded);
					}

					return bChanged;
				}
			}

			return false;
		}
function ( oTable , oRef , bExpand ) { var $Ref = jQuery ( oRef ) ; var $GroupRef ; if ( $Ref . hasClass ( "sapUiTableTreeIcon" ) || ( TableGrouping . isTreeMode ( oTable ) && $Ref . hasClass ( "sapUiTableCellFirst" ) ) ) { $GroupRef = $Ref . closest ( "tr" , oTable . getDomRef ( ) ) ; } else { $GroupRef = $Ref . closest ( ".sapUiTableGroupHeader" , oTable . getDomRef ( ) ) ; } var oBinding = oTable . getBinding ( "rows" ) ; if ( $GroupRef . length > 0 && oBinding ) { var iGroupHeaderRowIndex = + $GroupRef . attr ( "data-sap-ui-rowindex" ) ; var oRow = oTable . getRows ( ) [ iGroupHeaderRowIndex ] ; if ( oRow ) { var iAbsoluteRowIndex = oRow . getIndex ( ) ; var bIsExpanded = TableGrouping . toggleGroupHeader ( oTable , iAbsoluteRowIndex , bExpand ) ; var bChanged = bIsExpanded === true || bIsExpanded === false ; if ( bChanged && oTable . _onGroupHeaderChanged ) { oTable . _onGroupHeaderChanged ( iAbsoluteRowIndex , bIsExpanded ) ; } return bChanged ; } } return false ; }
Toggles the expand / collapse state of the group which contains the given DOM element.

@param {sap.ui.table.Table} oTable Instance of the table.
@param {Object} oRef DOM reference of an element within the table group header
@param {boolean} [bExpand] If defined instead of toggling the desired state is set.
@returns {boolean} Whether the operation was performed.
Toggles the expand / collapse state of the group which contains the given DOM element .
Toggle the group header of the table.