Commit 185d9aee by sawit

comment perspective

parent 40cea775
......@@ -602,15 +602,15 @@ export class SyncfusionDatagridWidgetComponent extends BaseWidgetComponent imple
onDataBound(args: any): void {
// Apply perspective after data is loaded and rendered, but only once.
if (this.perspective && !this.isPerspectiveApplied && this.grid) {
try {
setTimeout(() => {
this.setWidgetState(this.perspective as string);
}, 50); // Small delay to ensure rendering is complete
} catch (error) {
console.warn('Error applying perspective to grid:', error);
}
}
// if (this.perspective && !this.isPerspectiveApplied && this.grid) {
// try {
// setTimeout(() => {
// this.setWidgetState(this.perspective as string);
// }, 50); // Small delay to ensure rendering is complete
// } catch (error) {
// console.warn('Error applying perspective to grid:', error);
// }
// }
}
onReset(): void {
......
......@@ -469,11 +469,11 @@ export class SyncfusionPivotWidgetComponent extends BaseWidgetComponent implemen
onDataBound(args: any): void {
// Apply perspective after data is loaded and rendered, but only once.
if (this.perspective && !this.isPerspectiveApplied) {
setTimeout(() => {
this.setWidgetState(this.perspective as string);
}, 50); // Small delay to ensure rendering is complete
}
// if (this.perspective && !this.isPerspectiveApplied) {
// setTimeout(() => {
// this.setWidgetState(this.perspective as string);
// }, 50); // Small delay to ensure rendering is complete
// }
}
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