Title: Accessing nested components of DataGridComponent Post by: khan on July 12, 2022, 06:03:03 AM I have a question about detail template for expanded datagrid row. I can't access expanded nested datagrid components with @ViewChild decorator. I think, there is no event output ngAfterViewInit for detail template. Have you any suggestion for my code? How can I access nested components as an Angular component?
Code: /* Can access parent DataGridComponent */ Code: <eui-datagrid Title: Re: Accessing nested components of DataGridComponent Post by: khan on July 12, 2022, 06:24:09 AM Actually, my question is an Angular question. Probably, creating an Angular component with its own module for detail template is a good method.
Code: <ng-template euiDetailTemplate let-row> Title: Re: Accessing nested components of DataGridComponent Post by: jarry on July 14, 2022, 02:04:07 AM You should remove the 'static' option.
Code: @ViewChild('childDatagrid1') datagrid1: DataGridComponent; Title: Re: Accessing nested components of DataGridComponent Post by: khan on July 24, 2022, 02:48:30 AM Can't access component when I tried without static parameter too. It's giving an error. DataGridComponent is undefined. I think, that's not a problem. Using an external Angular module may be solution. Otherwise EasyUI team must write extra code for that.
|