isNewRecord

Determines whether the record at the given index has been saved to the data source.

Usage

if (dsMyDataObject.isNewRecord(0)) {
console.log('Row 0 has not been saved yet');
}

API

isNewRecord(index: number): boolean;

Last updated

Was this helpful?