@@ -232,51 +232,6 @@ export abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirect
232232 } ) ;
233233 }
234234
235- protected _createColumn ( col ) {
236- let ref ;
237- if ( col instanceof IgxColumnGroupComponent ) {
238- ref = this . _createColGroupComponent ( col ) ;
239- } else {
240- ref = this . _createColComponent ( col ) ;
241- }
242- return ref ;
243- }
244-
245- protected _createColGroupComponent ( col : IgxColumnGroupComponent ) {
246- const factoryGroup = this . resolver . resolveComponentFactory ( IgxColumnGroupComponent ) ;
247- const ref = this . viewRef . createComponent ( IgxColumnGroupComponent , { injector : this . viewRef . injector } ) ;
248- ref . changeDetectorRef . detectChanges ( ) ;
249- factoryGroup . inputs . forEach ( ( input ) => {
250- const propName = input . propName ;
251- ref . instance [ propName ] = col [ propName ] ;
252- } ) ;
253- if ( col . children . length > 0 ) {
254- const newChildren = [ ] ;
255- col . children . forEach ( child => {
256- const newCol = this . _createColumn ( child ) . instance ;
257- newCol . parent = ref . instance ;
258- newChildren . push ( newCol ) ;
259- } ) ;
260- ref . instance . children . reset ( newChildren ) ;
261- ref . instance . children . notifyOnChanges ( ) ;
262- }
263- return ref ;
264- }
265-
266- protected _createColComponent ( col ) {
267- const factoryColumn = this . resolver . resolveComponentFactory ( IgxColumnComponent ) ;
268- const ref = this . viewRef . createComponent ( IgxColumnComponent , { injector : this . viewRef . injector } ) ;
269- factoryColumn . inputs . forEach ( ( input ) => {
270- const propName = input . propName ;
271- if ( ! ( col [ propName ] instanceof IgxSummaryOperand ) ) {
272- ref . instance [ propName ] = col [ propName ] ;
273- } else {
274- ref . instance [ propName ] = col [ propName ] . constructor ;
275- }
276- } ) ;
277- return ref ;
278- }
279-
280235 protected getGridsForIsland ( rowIslandID : string ) {
281236 return this . hgridAPI . getChildGridsForRowIsland ( rowIslandID ) ;
282237 }
0 commit comments