I have Parent/Child grids. in the Child grid I want to give user the ability to choose Year Selection, as My child grid has quite a few Years/Months in them. Unfortunately below code is working fine in Parent but not in child grid.
If I add to Parent with template in it. It is working as expected but not for child grid
this.parenttoolbarOptions=['Add', 'Edit', 'Delete', 'Search','Update', 'Cancel','ExcelExport',{ text: 'Expand', tooltipText: 'Expand',
prefixIcon: 'e-expand', id: 'show' },{ text: 'Collapse', tooltipText: 'Collapse', prefixIcon: 'e-collapse', id: 'hide'}];
this.childtoolbarOptions=['Add','Edit', 'Delete', 'Update', 'Cancel','ExcelExport','ColumnChooser',
{ text: 'Show', tooltipText: 'Show', prefixIcon: 'e-expand', id: 'show' },
{ text: 'Hide', tooltipText: 'Hide', prefixIcon: 'e-collapse', id: 'hide' },
{template: this.templateYears}];
What a
<ng-template #templateYears>
<ejs-dropdownlist id='drpChildYears' #drpChildYears [dataSource]='dsChildYears' [placeholder]='placeholder' ></ejs-dropdownlist>
</ng-template>