Commit c4846178 by sawit

perspective

parent 0f7810a8
...@@ -602,15 +602,15 @@ export class SyncfusionDatagridWidgetComponent extends BaseWidgetComponent imple ...@@ -602,15 +602,15 @@ export class SyncfusionDatagridWidgetComponent extends BaseWidgetComponent imple
onDataBound(args: any): void { onDataBound(args: any): void {
// Apply perspective after data is loaded and rendered, but only once. // Apply perspective after data is loaded and rendered, but only once.
// if (this.perspective && !this.isPerspectiveApplied && this.grid) { if (this.perspective && !this.isPerspectiveApplied && this.grid && this.perspective !== '{}') {
// try { try {
// setTimeout(() => { setTimeout(() => {
// this.setWidgetState(this.perspective as string); this.setWidgetState(this.perspective as string);
// }, 50); // Small delay to ensure rendering is complete }, 50); // Small delay to ensure rendering is complete
// } catch (error) { } catch (error) {
// console.warn('Error applying perspective to grid:', error); console.warn('Error applying perspective to grid:', error);
// } }
// } }
} }
onReset(): void { onReset(): void {
......
...@@ -29,9 +29,7 @@ ...@@ -29,9 +29,7 @@
<i class="bi bi-clock"></i> <i class="bi bi-clock"></i>
<span>{{ lastUpdated | date:'short' }}</span> <span>{{ lastUpdated | date:'short' }}</span>
</div> </div>
</div> <!-- <div *ngIf="enableExport" class="action-button export-button" (click)="exportData($event)" title="Export Data">
<div class="header-actions">
<div *ngIf="enableExport" class="action-button export-button" (click)="exportData($event)" title="Export Data">
<i class="bi bi-download"></i> <i class="bi bi-download"></i>
</div> </div>
<div *ngIf="enableRefresh && dataSource !== 'static'" class="action-button refresh-button" (click)="refreshData($event)" title="Refresh Data"> <div *ngIf="enableRefresh && dataSource !== 'static'" class="action-button refresh-button" (click)="refreshData($event)" title="Refresh Data">
...@@ -39,8 +37,9 @@ ...@@ -39,8 +37,9 @@
</div> </div>
<div *ngIf="enableFiltering" class="action-button filter-button" (click)="toggleFilter($event)" title="Toggle Filter"> <div *ngIf="enableFiltering" class="action-button filter-button" (click)="toggleFilter($event)" title="Toggle Filter">
<i class="bi bi-funnel"></i> <i class="bi bi-funnel"></i>
</div> </div> -->
</div> </div>
</div> </div>
<div *ngIf="dataSource !== 'static'" class="data-source-info"> <div *ngIf="dataSource !== 'static'" class="data-source-info">
<i class="bi bi-info-circle"></i> <i class="bi bi-info-circle"></i>
......
...@@ -469,11 +469,11 @@ export class SyncfusionPivotWidgetComponent extends BaseWidgetComponent implemen ...@@ -469,11 +469,11 @@ export class SyncfusionPivotWidgetComponent extends BaseWidgetComponent implemen
onDataBound(args: any): void { onDataBound(args: any): void {
// Apply perspective after data is loaded and rendered, but only once. // Apply perspective after data is loaded and rendered, but only once.
// if (this.perspective && !this.isPerspectiveApplied) { if (this.perspective && !this.isPerspectiveApplied && this.perspective !== '{}') {
// setTimeout(() => { setTimeout(() => {
// this.setWidgetState(this.perspective as string); this.setWidgetState(this.perspective as string);
// }, 50); // Small delay to ensure rendering is complete }, 50); // Small delay to ensure rendering is complete
// } }
} }
onReset(): void { onReset(): void {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment