Hi Jamal Furuku,Thanks for contacting Syncfusion support.We suspect that your requirement is to bind JSON data with complex objects. And specific key value in the object should be displayed in pivot table. But the pivot table accepts flat JSON data as it's data source. And any complex object inside the JSON isn't supported. So kindly make your data source as flat JSON and bind to the component.If the above response doesn’t match your requirement then kindly send us more information about your requirement with screenshots/video (if possible) which would be helpful for us to proceed further.Regards,Sivamathi.
|
<div class="control-section" style="overflow:auto;">
<ejs-pivotview #pivotview id='PivotView' [dataSourceSettings]=dataSourceSettings
width='100%' height='290'[gridSettings]='gridSettings'
(enginePopulated)='enginePopulated($event)'>
</ejs-pivotview>
</div>
queryCell(args: any): void {
(this.pivotGridObj.renderModule as any).rowCellBoundEvent(args);
// Here we have customized the row headers.
if (args.cell.classList.contains('e-rowsheader') && args.cell.textContent === "France") {
args.cell.querySelector('.e-cellvalue').innerText = "Customize innerText";
}
}
enginePopulated(args: any): void {
this.pivotGridObj.grid.queryCellInfo = this.queryCell.bind(this);
}
|