Skip to content

Commit 146f2d5

Browse files
1000396: resolved latest concerns
1 parent 5507989 commit 146f2d5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Employee_Managment_App/src/components/Employees.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Employees = (props?: EmployeesProps) => {
3232

3333
const employeeGridIns = useRef<GridComponent>(null);
3434
const tooltipObj = useRef<TooltipComponent>(null);
35-
35+
const gridRef = React.useRef<GridComponent | null>(null);
3636
// Use Syncfusion Grid API to auto-fit column widths and keep height auto-sized
3737
const onGridDataBound = React.useCallback(() => {
3838
const grid: any = employeeGridIns.current;
@@ -47,6 +47,8 @@ const Employees = (props?: EmployeesProps) => {
4747
useEffect(() => {
4848
const grid = employeeGridIns.current;
4949
if (!grid) return;
50+
const gridEl = gridRef.current?.element;
51+
if (!gridEl) return;
5052

5153
// Clear existing filters and search when the pill changes
5254
grid.clearFiltering();
@@ -169,7 +171,7 @@ const Employees = (props?: EmployeesProps) => {
169171
>
170172
<GridComponent
171173
id="employees_grid"
172-
ref={employeeGridIns}
174+
ref={gridRef}
173175
dataSource={data}
174176
allowPaging={true}
175177
pageSettings={{ pageCount: 4, pageSize: 15 }}

Employee_Managment_App/src/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22324,7 +22324,7 @@ label[for*=_wholeWord_e-de-rtl] {
2232422324

2232522325
.e-de-tc-pmark {
2232622326
font-size: 14px;
22327-
font-family: Roboto-Regular;
22327+
font-family: 'Roboto', sans-serif;
2232822328
font-weight: 600;
2232922329
color: rgb(1, 22, 119);
2233022330
margin: 0 2px;
@@ -71041,6 +71041,9 @@ td.cardcell.separateline {
7104171041
.org-filters__pills .org-pill{
7104271042
margin-bottom: 7px;
7104371043
}
71044+
#employees_grid .e-popup.e-popup-open.e-dialog{
71045+
top: 135.8px !important;
71046+
}
7104471047

7104571048
.achievements-content .card-control-section.basic_card_layout .col-xs-6.col-sm-6.col-lg-6.col-md-6 {
7104671049
width: 100%;

0 commit comments

Comments
 (0)