Skip to content

Commit

Permalink
Set data for cascading combo sample with only 3 rows. (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrustev authored Nov 18, 2024
1 parent 8e92fc8 commit aa3f362
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion samples/grids/grid/cascading-combo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,26 @@ export default class Sample extends React.Component<any, any> {
private column1: IgrColumn
private column2: IgrColumn
private column3: IgrColumn
public gridData = [
{
ID: 1,
Country: '',
Region: '',
City: ''
},
{
ID: 2,
Country: '',
Region: '',
City: ''
},
{
ID: 3,
Country: '',
Region: '',
City: ''
}
];

constructor(props: any) {
super(props);
Expand All @@ -42,7 +62,7 @@ export default class Sample extends React.Component<any, any> {
<div className="container fill">
<IgrGrid
autoGenerate="false"
data={this.worldCitiesAbove500K}
data={this.gridData}
primaryKey="ID"
ref={this.gridRef}
rendered={this.webGridWithComboRendered}>
Expand Down

0 comments on commit aa3f362

Please sign in to comment.