Skip to content

Commit 924468c

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Add warning message for property rowEditable.
1 parent af556f9 commit 924468c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective
104104
const context = this.strip.context;
105105
const grid = context.grid;
106106
if (!grid.rowEditable) {
107-
console.warn('The grid must be in row edit mode to perform row adding!');
107+
console.warn('The grid must use row edit mode to perform row adding! Please set rowEditable to true.');
108108
return;
109109
}
110110
grid.beginAddRowByIndex(context.rowID, context.index, asChild);

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,6 +4066,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
40664066
*/
40674067
public beginAddRowByIndex(rowID: any, index: number, asChild?: boolean) {
40684068
if (!this.rowEditable) {
4069+
console.warn('The grid must use row edit mode to perform row adding! Please set rowEditable to true.');
40694070
return;
40704071
}
40714072
this.endEdit(true);

0 commit comments

Comments
 (0)