DataProcessor
Handles client-server data saving operations.
Methods
| attachEvent | attaches the handler to an inner event of the component |
| attachProgress | assigns handler for data saving actions |
| blockEvent | temporarily blocks triggering of ALL events of the calling object |
| callEvent | calls an inner event |
| clearValidation | removes "data incorrect" highlighting from invalid text fields |
| define | redefines a single configuration property (or a object with properties) |
| detachEvent | detaches a handler from an event (which was attached before by the attachEvent method) |
| escape | escapes data |
| getItemState | return update state for the item in question |
| getState | gets the current DataProcessor state |
| hasEvent | checks whether the component has the specified event handler |
| ignore | ignores the data operation passed as the parameter (the operation will not be saved on the server) |
| mapEvent | routes events from one object to another |
| off | disables dataProcessor |
| on | enables dataProcessor |
| processResult | process data saving results |
| reset | reset updated state for all items |
| save | marks a data record as changed and initiates data saving |
| send | sends a request to server |
| setItemState | set update state for the item |
| unblockEvent | cancels events blocking that was enabled by the 'blockEvent' command |
| validate | checks data in the form |
Events
Properties
| autoupdate | enables automatic data updating on server while any changes on client-side are done |
| escape | custom escaping function |
| id | the ID of a widget |
| master | the linked data component (e.g. grid) |
| mode | type of request |
| on | allows attaching custom handlers to inner events of the component |
| operationName | name of parameter which will hold operation type |
| rules | defines a set of rules for input field(s) of the form(htmlform) |
| store | allows to define datastore which will be monitored for changes |
| trackMove | enables data moving tracking |
| undoOnError | defines whether undo will be made if server returns error response |
| updateFromResponse | server data update mode |
| url | server side data saving script |
Other
| config | all options from the initial component configuration |
| name | indicates the name of the component (a read-only property) |
Back to top