Skip to content

Commit 4ec17e1

Browse files
DataGrid Row Demo - Fix issues (#31879)
1 parent 129594b commit 4ec17e1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/demos/Demos/DataGrid/Row/Angular/app/app.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
keyExpr="ID"
55
[columnAutoWidth]="true"
66
[showBorders]="true"
7+
[rowAlternationEnabled]="true"
8+
[hoverStateEnabled]="true"
79
dataRowTemplate="dataRowTemplateName"
810
>
911
<dxi-data-grid-column

apps/demos/Demos/DataGrid/Row/React/DataRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33

44
const formatDate = new Intl.DateTimeFormat('en-US').format;
55

6-
const DataRow = (rowInfo: DataGridTypes.RowTemplateData) => (
6+
const DataRow = (rowInfo: DataGridTypes.DataRowTemplateData) => (
77
<React.Fragment>
88
<tr className="main-row" role="row">
99
<td rowSpan={2} role="gridcell"><img src={rowInfo.data.Picture} alt={`Picture of ${rowInfo.data.FirstName} ${rowInfo.data.LastName}`} tabIndex={0} /></td>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
key-expr="ID"
77
:column-auto-width="true"
88
:show-borders="true"
9-
:row-alternatin-enabled="true"
9+
:row-alternation-enabled="true"
1010
:hover-state-enabled="true"
1111
data-row-template="dataRowTemplate"
1212
>

0 commit comments

Comments
 (0)