Hi,
When the data source is dynamically switched, the interface displays an error!
https://stackblitz.com/edit/angular-rcttcy?file=app.component.ts
HTML:
<ejs-dashboardlayout id="default_dashboard" columns="2" #default_dashboard [cellSpacing]="cellSpacing"
[cellAspectRatio]="5" [allowResizing]="true" [allowDragging]="true" [allowFloating]="true" >
<e-panels>
<e-panel *ngFor="let item of layout" [id]="item.id" [row]="item.row" [col]="item.col" [sizeX]="item.x" [sizeY]="item.y" >
<ng-template #header>
<div>
{{ item.id }}
</div>
</ng-template>
<ng-template #content>
<div>
{{ item.id }}
</div>
</ng-template>
</e-panel>
</e-panels>
</ejs-dashboardlayout>
The Data 'layout' is dynamically.
Step1: Click Load one
this.layout.push({ id: 'a1', row: 0, col: 0, x: 1, y: 1 });
this.layout.push({ id: 'a2', row: 0, col: 1, x: 1, y: 1 });
Step2: Click Load two
this.layout .push({ id: 'b1', row: 0, col: 0, x: 2, y: 1 });
this.layout .push({ id: 'b2', row: 1, col: 0, x: 1, y: 1 });
this.layout .push({ id: 'b3', row: 1, col: 0, x: 1, y: 1 });
Step3: Click Load three
this.layout .push({ id: 'c1', row: 0, col: 0, x: 2, y: 1 });
this.layout .push({ id: 'c2', row: 1, col: 0, x: 1, y: 1 });
Step4:
Click Load One:
the layout is wrong and can't display the id
How long will this problem be solved, it's been a long time
Hi Techlandandyzhang,
Sorry for the inconvenience.
We were unable to include the fix as promised. The fix for this issue has been included internally and is currently under testing. It will be included in our weekly patch release on June 21, 2022. We appreciate your patience.
Regards,
Prasanth Madhaiyan.
Hi Techlandandyzhang,
Sorry for the inconvenience.
Due to high priority bug fixes, we are unable to include the fix for this issue as promised. The fix for this issue will be included in our weekly patch release on July 5, 2022. We appreciate your patience.
Regards,
Indhumathy L
Hi Techlandandyzhang,
Sorry for the delayed response.
We are glad to announce that the issues “Dynamically changing the panels of Dashboard Layout is not working properly” have been resolved in our release 20.2.43 and no longer occurs. To access this fix, we suggest you update the package to 20.2.43 or latest version. For your reference, we have attached a sample in the latest version.
Sample: https://stackblitz.com/edit/angular-rcttcy-y4cdlx?file=package.json,app.component.html
Release Notes: https://ej2.syncfusion.com/angular/documentation/release-notes/20.2.43/?type=all
Please let us know if you need any further assistance.
Regards,
Indhumathy L