@@ -3,11 +3,11 @@ namespace OutSystems.GridAPI.ColumnManager {
33 const columnArr = new Array < OSFramework . DataGrid . Column . IColumn > ( ) ;
44
55 /**
6- * Add a given column to the grid group panel.
6+ * Add a given column or columns list to the grid group panel.
77 *
88 * @export
99 * @param {string } gridID ID of the Grid where the change will occur.
10- * @param {string } columnID ID of the Column block that will be programmatically added to the grid group panel.
10+ * @param {string } ListOfColumnIDs List of Ids of the Column blocks that will be programmatically added to the grid group panel.
1111 */
1212 export function AddColumnsToGroupPanel ( gridID : string , ListOfColumnIDs : string ) : string {
1313 Performance . SetMark ( 'ColumnManager.AddColumnToGroupPanel' ) ;
@@ -144,7 +144,7 @@ namespace OutSystems.GridAPI.ColumnManager {
144144 Performance . SetMark ( 'ColumnManager.changeProperty' ) ;
145145
146146 const column = GetColumnById ( columnID ) ;
147- if ( column === undefined ) {
147+ if ( column === undefined ) {
148148 throw new Error ( OSFramework . DataGrid . Enum . ErrorMessages . Column_NotFound ) ;
149149 }
150150
@@ -188,6 +188,33 @@ namespace OutSystems.GridAPI.ColumnManager {
188188 ) ;
189189 }
190190
191+ /**
192+ * Remove a given column or columns list from the grid group panel
193+ *
194+ * @export
195+ * @param {string } gridID ID of the Grid where the change will occur.
196+ * @param {string } ListOfColumnIDs List of Ids of the Column blocks that will be programmatically removed from the grid group panel.
197+ */
198+ export function RemoveColumnsFromGroupPanel ( gridID : string , ListOfColumnIDs : string ) : string {
199+ Performance . SetMark ( 'ColumnManager.RemoveColumnsFromGroupPanel' ) ;
200+ const result = Auxiliary . CreateApiResponse ( {
201+ gridID,
202+ errorCode : OSFramework . DataGrid . Enum . ErrorCodes . API_FailedRemoveColumnsFromGroupPanel ,
203+ callback : ( ) => {
204+ GridManager . GetGridById ( gridID ) . features . groupPanel . removeColumnsFromGroupPanel ( ListOfColumnIDs ) ;
205+ } ,
206+ } ) ;
207+
208+ Performance . SetMark ( 'ColumnManager.RemoveColumnsFromGroupPanel-end' ) ;
209+ Performance . GetMeasure (
210+ '@datagrid-ColumnManager.RemoveColumnsFromGroupPanell' ,
211+ 'ColumnManager.RemoveColumnsFromGroupPanel' ,
212+ 'ColumnManager.RemoveColumnsFromGroupPanel-end'
213+ ) ;
214+
215+ return result ;
216+ }
217+
191218 /**
192219 * Set column aggregate in group panel
193220 *
0 commit comments