Documentation

DataRecord

Data View-less component that stores a single data record.

Methods
attachEvent attaches the handler to an inner event of the component (allows behaviour customizations)
bind binds components
blockEvent temporarily blocks triggering of ALL events of the calling object
callEvent calls an inner event
define redefines a single configuration property (or a hash of properties)
detachEvent detaches a handler from an event (which was attached before by the attachEvent method)
getValues gets hash of data values
hasEvent checks whether the component has the specified event
isVisible returns true if current view is visible
load loads data from an external data source.
mapEvent routes events from one object to another
parse loads data to the component from an inline data source
refresh repaints the whole view or a certain item
setValues sets values for all inputs in the component
unbind breaks "bind" link
unblockEvent cancels blocking events that was enabled by the 'blockEvent' command
Events
onAfterLoad fires after server side loading is complete
onBeforeLoad occurs immediately before data loading has been started
onBindRequest fires when the component is ready to receive data from the master component
onChange fires when the user changes the value of the DataRecord object
onLoadError fires when an error occurs during data loading ( invalid server side response )
Properties
data JavaScript array containing data for the component
dataFeed the URL that the component will use to reload data during binding
datatype the type of loaded data
id the component ID
on allows attaching custom handlers to inner events of the component
url the URL the component will use to load data after its initialization
Other
config all options from initial component configuration
name indicates the name of the component (a read-only property)
Back to top