Hi,
I am trying to achieve the following.
When hovering over a cell of the grid, pop up a dynamic component. For this I need to be able to know the column name, row index, so I can pass it to the parent app, so it can set the data to the dynamic component based on the selected row.
I was able to achieve this on row selection. emitting selectionChanged event to the main app.
Question is how cna we do this on hover.
in single-grid
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
<div cell [title]="(column.someField!= null) ? column.fieldAccessor(dataItem, dataItem[column.tooltipField]) : dataItem[column.tooltipField || column.field] | facetsData">
{{ (column.someField != null) ? column.fieldAccessor(dataItem, dataItem[column.field]) : dataItem[column.field]
}}
<some-dynamic *ngIf="column?.info" [iconColor]="'white'"
[dynamicPopupComponent]="column.info.displayComponent"
[dynamicData]="column.info.displayData"
[displayPosition]="column.info.displayPosition">
</some-dynamic>
</div>
</ng-template>
I have multiple grids in a for loop . The main app basically uses the multi-grid component to render multiple grids.
<div *ngFor="let gridData of gridDataRows; let indexOfgrid=index;" style="margin-bottom:25px">
<single-grid #multiGrid [settings]="settings[indexOfgrid]" [data]="gridData"
...
<single-grid>
</div>
main app -- this app need to know what cell was hovered over along with the row index and column name.
<multi-grid
... all the inputs >
</multi-grid>
Any help is greatly appreciated.
REgards,
Jyothi