File tree Expand file tree Collapse file tree
packages/devextreme/js/__internal/grids/grid_core/columns_controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,21 +466,11 @@ export class ColumnsController extends modules.Controller {
466466 return this . getColumns ( ) . some ( ( column ) => column . isBand ) ;
467467 }
468468
469- private _columnCanBeGrouped ( column ) {
470- if ( column ?. type ) return false ;
471-
472- return isDefined ( column . groupIndex ) && ! column . type ;
473- }
474-
475469 public getGroupColumns ( ) {
476470 const result : any = [ ] ;
477471
478- const columnCanBeGrouped = this . _columnCanBeGrouped ;
479-
480- each ( this . _columns , function ( ) {
481- const column = this ;
482-
483- if ( columnCanBeGrouped ( column ) ) {
472+ ( this . _columns as Column [ ] ) . forEach ( ( column ) => {
473+ if ( isDefined ( column . groupIndex ) && ! column . type ) {
484474 result [ column . groupIndex ] = column ;
485475 }
486476 } ) ;
You can’t perform that action at this time.
0 commit comments