Hi
I am using *ngFor for rendering the columns.
But when I am navigating to another url then screen is going blank.
Going to another url:-
In console:-
When columns are not dynamic then everything goes well.
Kindly
Hi,
Thanks for your reply.
I am still facing the issue. My data is containing %, numeric values and other characters as well. I want to render all as a string.
I am using dynamic column rendering in other modules as well. There it is working fine. I guess because data is containg special characters, this issue is coming.
Namita
Hi
<ejs-grid *ngIf="showOnlyReport" #ViewReportGrid id='ViewReportGrid' [dataSource]="ReportData"
[allowExcelExport]='true' [allowPdfExport]='true' [toolbar]='toolbar' (toolbarClick)='toolbarClick($event)'
gridLines='Both' allowFiltering='true' [filterSettings]='filterSettings' height="400" [allowResizing]='true'>
<!--<ejs-grid [dataSource]="ReportData">-->
<e-columns>
<e-column *ngFor="let item of HeaderList" field='{{item}}'
headerText='{{item}}'
width=150>
</e-column>
</e-columns>
<!--<e-columns>
<div *ngFor="let item of HeaderList">
<e-column [field]="item" [headerText]="item" width="130"></e-column>
</div>
</e-columns>-->
</ejs-grid>
3. After executing above grid when I am going another page through Menus.
After clicking another menu, following screen is coming with mentioned(in previous message.) console error.
This is my report. I just want every columnshould render as string without considering its format
han
|
export class GridNormalComponent {
public data: any = sampleData;
public columns: any;
ngOnInit(): void {
this.columns = [{ field: "KPI", headerText: "KPI", width: "90" },
{ field: "Weightage", headerText: "Weightage", width: "90" },
{ field: "UOM", headerText: "UOM", width: "90" },
{ field: "Threshold", headerText: "Threshold", width: "90" },
{ field: "Periods", headerText: "Periods", width: "90" }]
}
}
|
Hi
Can we schedule a call please?
Thanks