DataRecord

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

Methods
attachEvent attaches the handler to an inner event of the component
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 handler
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 events blocking that was enabled by the 'blockEvent' command
Events
onAfterLoad fires after data loading is complete
onBeforeLoad fires immediately before data loading has 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 ID of a widget
on allows attaching custom handlers to inner events of the component
url the URL which the component will use to load data after its initialization
Other
config all options from the initial component configuration
name indicates the name of the component (a read-only property)
Back to top