Properties Methods Events Direct Link

Class Ext.data.Record

Package:Ext.data
Defined In:Record.js
Class:Record
Extends:Object

Instances of this class encapsulate both Record definition information, and Record value information for use in Ext.data.Store objects, or any code which needs to access Records cached in an Ext.data.Store object.

Constructors for this class are generated by passing an Array of field definition objects to create. Instances are usually only created by Ext.data.Reader implementations when processing unformatted data objects.

Note that an instance of a Record class may only belong to one Store at a time. In order to copy data from one Store to another, use the copy method to create an exact copy of the Record, and insert the new instance into the other Store.

When serializing a Record for submission to the server, be aware that it contains many private properties, and also a reference to its owning Store which in turn holds references to its Records. This means that a whole Record may not be encoded using Ext.util.JSON.encode. Instead, use the data and id properties.

Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below.

Public Properties

PropertyDefined By
 dirty : Boolean
Readonly flag - true if this Record has been modified.
Record
 id : Object
The unique ID of the Record as specified at construction time.
Record
 store : Ext.data.Store
The Ext.data.Store to which this Record belongs.
Record

Public Methods

MethodDefined By

Public Events

This class has no public events.