Posted 3 August 2022, 12:41 am EST
Hi Team,I have added custom icon in row field of pivot grid. whenever i resize grid, the icon goes off (hides) i dont want to hide it, it should remain in its place.
Thanks
Forums Home / Wijmo / General Discussion Topics
Posted by: riya.katawate16 on 3 August 2022, 12:41 am EST
Posted 3 August 2022, 12:41 am EST
Hi Team,Replied 3 August 2022, 5:13 pm EST
Hello,Replied 3 August 2022, 10:54 pm EST
I have added customIcon on row header. but when i refresh page it goes off. and after clicking on row header it comes back.Replied 4 August 2022, 8:56 pm EST
i got same issue.Replied 5 August 2022, 1:14 am EST
​Hello,Replied 9 August 2022, 11:36 pm EST
Hi Team,initPivot(pivotGrid) {
pivotGrid.collectionView.collectionChanged.addHandler((s, e) => {
//add icons on rowFileds column header cells
s.engine.rowFields.forEach((field, i) => {
if (field.filter.isActive) {
let cell = pivotGrid.topLeftCells.getCellElement(0, i);
this.addCustomIcon(cell, field.header);
}
});
});
}
addCustomIcon(cell, header) {
setTimeout(() => {
cell.innerHTML =
`<span id="customIcon" class="wj-glyph-filter"></span>`+" "+header;
}, 10);
}
Marked as Answer
Replied 10 August 2022, 9:49 pm EST
Hello,Replied 11 August 2022, 3:51 pm EST
Thanks for your response.