Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set data for cascading combo sample with only 3 rows. #672

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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