Skip to content

Commit

Permalink
Merge pull request #753 from IgniteUI/skrastev/fix-castacding-react
Browse files Browse the repository at this point in the history
Set data for cascading combo to 3 rows for React, similar to other platforms.
  • Loading branch information
dkamburov authored Nov 18, 2024
2 parents e2748f5 + 6a68bba commit f48f4e7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions code-gen-library/WebGridWithComboRendered/React.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
//begin imports
import { IgrCombo } from 'igniteui-react';
import { IgrCombo, IgrVoidEventArgs } from 'igniteui-react';
import { IgrGrid } from 'igniteui-react-grids';
//end imports


export class WebGridWithComboRendered {
//begin eventHandler
public webGridWithComboRendered(args: any) {
console.log(args);
}
public gridData = [
{ ID: 1, Country: '', Region: '', City: '' },
{ ID: 2, Country: '', Region: '', City: '' },
{ ID: 3, Country: '', Region: '', City: '' }
];
public countryNames = [
'United States',
'Japan',
Expand All @@ -23,6 +26,9 @@ export class WebGridWithComboRendered {
}
}

public webGridWithComboRendered(gridRef: IgrGrid, args: IgrVoidEventArgs) {
gridRef.data = this.gridData;
}

public onCountryChange( rowId: string, cmp: any, args:any) {
// find next combo
Expand Down

0 comments on commit f48f4e7

Please sign in to comment.