Skip to content

Commit

Permalink
Adding changes from build igniteui-xplat-examples-output+PRs_2023.12.…
Browse files Browse the repository at this point in the history
…5.1 (#395)

Co-authored-by: tfsbuild <tfsbuild@infragistics.com>
  • Loading branch information
azure-pipelines[bot] and tfsbuild authored Dec 6, 2023
1 parent 71b596d commit 515f545
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions samples/grids/grid/cascading-combo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,25 @@ export default class Sample extends React.Component<any, any> {
// find next combo
// args incomplete, so gte value from component on timeout as workaround.
const regionCombo = this.comboRefCollection.get("region_" + rowId);
const cityCombo = this.comboRefCollection.get("city_" + rowId);
const regions = this.regions;
setTimeout(() => {
const newValue = cmp.value[0];
if (newValue === undefined) {
regionCombo.deselect(regionCombo.value);
regionCombo.disabled = true;
regionCombo.data = [];

cityCombo.deselect(regionCombo.value);
cityCombo.disabled = true;
cityCombo.data = [];
} else {
regionCombo.disabled = false;
regionCombo.data = regions.filter(x => x.Country === newValue);

cityCombo.deselect(cityCombo.value);
cityCombo.disabled = true;
cityCombo.data = [];
}
});
}
Expand Down
1 change: 0 additions & 1 deletion samples/grids/grid/conditional-row-selectors/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default class Sample extends React.Component<any, any> {
// all selected from header, de-select instead
event.newSelection = [];
}
grid.markForCheck();
}

}
Expand Down
5 changes: 2 additions & 3 deletions samples/grids/grid/keyboard-custom-navigation/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ export default class Sample extends React.Component<any, any> {
return this._componentRenderer;
}

public webGridCustomKBNav(sender: IgrGrid, evtArgs: IgrGridKeydownEventArgs): void {
const args = evtArgs.detail;
public webGridCustomKBNav(grid: IgrGrid, eventArgs: IgrGridKeydownEventArgs): void {
const args = eventArgs.detail;
const target = args.target;
const evt = args.event;
const type = args.targetType;
var grid = this.grid as any;

if (type === GridKeydownTargetType.DataCell && target.editMode && evt.key.toLowerCase() === 'tab') {
// Value validation for number column.
Expand Down

0 comments on commit 515f545

Please sign in to comment.