Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
portal-apps-manage
Commits
60f86e50
Commit
60f86e50
authored
Sep 08, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
datagrid
parent
f3665be7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
dashboard-viewer.component.ts
...tal-manage/dashboard-viewer/dashboard-viewer.component.ts
+2
-2
syncfusion-datagrid-widget.component.ts
...n-datagrid-widget/syncfusion-datagrid-widget.component.ts
+3
-1
syncfusion-pivot-widget.component.ts
...cfusion-pivot-widget/syncfusion-pivot-widget.component.ts
+8
-1
No files found.
src/app/portal-manage/dashboard-viewer/dashboard-viewer.component.ts
View file @
60f86e50
...
...
@@ -116,7 +116,7 @@ export class DashboardViewerComponent implements OnInit {
if
(
dashboard
)
{
if
(
dashboard
.
widgets
)
{
dashboard
.
widgets
.
forEach
(
widget
=>
{
const
keysToProcess
:
Array
<
keyof
WidgetModel
>
=
[
'config'
,
'
perspective'
,
'
data'
];
const
keysToProcess
:
Array
<
keyof
WidgetModel
>
=
[
'config'
,
'data'
];
keysToProcess
.
forEach
(
key
=>
{
if
((
widget
as
any
)[
key
]
&&
typeof
(
widget
as
any
)[
key
]
===
'string'
)
{
try
{
...
...
@@ -153,7 +153,7 @@ export class DashboardViewerComponent implements OnInit {
row
:
widget
.
y
,
col
:
widget
.
x
,
componentType
:
this
.
widgetComponentMap
[
widget
.
component
],
componentInputs
:
{
config
:
widget
.
config
||
{}
},
componentInputs
:
{
config
:
widget
.
config
||
{}
,
perspective
:
widget
.
perspective
},
};
});
}
...
...
src/app/portal-manage/widgets/syncfusion-datagrid-widget/syncfusion-datagrid-widget.component.ts
View file @
60f86e50
...
...
@@ -184,7 +184,9 @@ 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
.
setWidgetState
(
this
.
perspective
as
string
);
setTimeout
(()
=>
{
this
.
setWidgetState
(
this
.
perspective
as
string
);
},
50
);
// Small delay to ensure rendering is complete
}
}
...
...
src/app/portal-manage/widgets/syncfusion-pivot-widget/syncfusion-pivot-widget.component.ts
View file @
60f86e50
...
...
@@ -93,6 +93,7 @@ export class SyncfusionPivotWidgetComponent extends BaseWidgetComponent implemen
columns
:
report
.
columns
?.
map
(
c
=>
({
name
:
c
.
name
}))
||
[],
values
:
report
.
values
?.
map
(
v
=>
({
name
:
v
.
name
,
type
:
v
.
type
}))
||
[],
filters
:
report
.
filters
?.
map
(
f
=>
({
name
:
f
.
name
}))
||
[],
chartSettings
:
{
chartSeries
:
{
type
:
(
this
.
pivotview
.
chartSettings
?.
chartSeries
as
any
)?.
type
||
(
this
.
chartSettings
?.
chartSeries
as
any
)?.
type
}
},
};
return
JSON
.
stringify
(
perspective
);
}
...
...
@@ -110,6 +111,10 @@ export class SyncfusionPivotWidgetComponent extends BaseWidgetComponent implemen
values
:
perspective
.
values
||
[],
filters
:
perspective
.
filters
||
[],
};
if
(
perspective
.
chartSettings
)
{
this
.
chartSettings
=
perspective
.
chartSettings
;
this
.
dataSourceSettings
.
chartSettings
=
perspective
.
chartSettings
;
}
if
(
this
.
pivotview
)
{
this
.
pivotview
.
dataSourceSettings
=
this
.
dataSourceSettings
;
}
...
...
@@ -134,7 +139,9 @@ 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
)
{
this
.
setWidgetState
(
this
.
perspective
as
string
);
setTimeout
(()
=>
{
this
.
setWidgetState
(
this
.
perspective
as
string
);
},
50
);
// Small delay to ensure rendering is complete
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment