Skip to content

Commit 2851141

Browse files
authored
DataGrid - AI Column loading spinner placement is incorrect on the first load (#31967)
1 parent bab2d66 commit 2851141

File tree

14 files changed

+46
-0
lines changed

14 files changed

+46
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
::ng-deep #gridContainer {
2+
min-height: 560px;
3+
}
4+
15
::ng-deep #gridContainer .ai__cell {
26
background-color: var(--dx-datagrid-row-alternation-bg);
37
}

apps/demos/Demos/DataGrid/AIColumns/React/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default function App() {
4141
keyExpr="ID"
4242
aiIntegration={aiIntegration}
4343
onAIColumnRequestCreating={onAIColumnRequestCreating}
44+
className="ai__grid"
4445
>
4546
<Paging
4647
enabled={true}

apps/demos/Demos/DataGrid/AIColumns/React/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
background-color: var(--dx-datagrid-row-alternation-bg);
33
}
44

5+
.ai__grid {
6+
min-height: 560px;
7+
}
8+
59
.trademark__wrapper {
610
display: flex;
711
align-items: center;

apps/demos/Demos/DataGrid/AIColumns/ReactJs/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default function App() {
3333
keyExpr="ID"
3434
aiIntegration={aiIntegration}
3535
onAIColumnRequestCreating={onAIColumnRequestCreating}
36+
className="ai__grid"
3637
>
3738
<Paging
3839
enabled={true}

apps/demos/Demos/DataGrid/AIColumns/ReactJs/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
background-color: var(--dx-datagrid-row-alternation-bg);
33
}
44

5+
.ai__grid {
6+
min-height: 560px;
7+
}
8+
59
.trademark__wrapper {
610
display: flex;
711
align-items: center;

apps/demos/Demos/DataGrid/AIColumns/Vue/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:showBorders="true"
66
:aiIntegration="aiIntegration"
77
:onAIColumnRequestCreating="onAIColumnRequestCreating"
8+
class="ai__grid"
89
>
910
<DxGrouping :contextMenuEnabled="false"/>
1011
<DxPaging :pageSize="10"/>
@@ -121,4 +122,8 @@ const onAIColumnRequestCreating = (e: { data: Partial<Vehicle>[] }) => {
121122
#app .ai__cell {
122123
background-color: var(--dx-datagrid-row-alternation-bg);
123124
}
125+
126+
.ai__grid {
127+
min-height: 560px;
128+
}
124129
</style>

apps/demos/Demos/DataGrid/AIColumns/jQuery/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#gridContainer {
2+
min-height: 560px;
3+
}
4+
15
#gridContainer .ai__cell {
26
background-color: var(--dx-datagrid-row-alternation-bg);
37
}

apps/demos/Demos/TreeList/AIColumns/Angular/app/app.component.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
::ng-deep #employees {
2+
min-height: 560px;
3+
}
4+
15
::ng-deep #employees .ai__cell {
26
background-color: var(--dx-datagrid-row-alternation-bg);
37
}

apps/demos/Demos/TreeList/AIColumns/React/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default function App() {
3030
autoExpandAll={true}
3131
aiIntegration={aiIntegration}
3232
onAIColumnRequestCreating={onAIColumnRequestCreating}
33+
className="ai__grid"
3334
>
3435
<Paging enabled={true} pageSize={10} />
3536
<Scrolling mode="standard" />

apps/demos/Demos/TreeList/AIColumns/React/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
background-color: var(--dx-datagrid-row-alternation-bg);
33
}
44

5+
.ai__grid {
6+
min-height: 560px;
7+
}
8+
59
#app .name_cell > div {
610
align-items: flex-end;
711
}

0 commit comments

Comments
 (0)