Ext.NET
5.3.0
.NET Component Framework for Enterprise Level Apps
|
Class for model instance manipulation More...
Public Member Functions | |
ModelProxy (AbstractStore store, object id) | |
ModelProxy (AbstractStore store, object id, bool isInternal) | |
ModelProxy (AbstractStore store, int index) | |
ModelProxy (AbstractStore store) | |
ModelProxy (AbstractStore store, string expression) | |
void | Abort () |
Aborts a pending load operation. If the record is not loading, this does nothing. More... | |
void | BeginEdit () |
Begin an edit. While in edit mode, no events (e.g. the update event) are relayed to the containing store. When an edit has begun, it must be followed by either endEdit or cancelEdit. More... | |
void | CancelEdit () |
Cancels all changes made in the current edit operation. More... | |
ModelProxy | Clone () |
Creates a clone of this record. States like dropped, phantom and dirty are all preserved in the cloned record. More... | |
void | Commit () |
Usually called by the Ext.data.Store which owns the model instance. Commits all changes made to the instance since either creation or the last commit operation. Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations. More... | |
void | Commit (bool silent) |
Usually called by the Ext.data.Store which owns the model instance. Commits all changes made to the instance since either creation or the last commit operation. Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations. More... | |
void | Destroy () |
Destroys the model using the configured proxy More... | |
void | Destroy (object options) |
Destroys the model using the configured proxy More... | |
void | Drop (bool cascade=true) |
Marks this record as dropped and waiting to be deleted on the server. When a record is dropped, it is automatically removed from all association stores and any child records associated to this record are also dropped (a "cascade delete") depending on the cascade parameter. More... | |
void | EndEdit () |
End an edit. If any data was modified, the containing store is notified (ie, the store's update event will fire). More... | |
void | EndEdit (bool silent) |
End an edit. If any data was modified, the containing store is notified (ie, the store's update event will fire). More... | |
void | Erase (object options) |
Destroys the model using the configured proxy. More... | |
void | Load () |
Load the model instance using the configured proxy. More... | |
void | Load (object options) |
Load the model instance using the configured proxy. More... | |
void | Reject () |
Usually called by the Ext.data.Store to which this model instance has been joined. Rejects all changes made to the model instance since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations. More... | |
void | Reject (bool silent) |
Usually called by the Ext.data.Store to which this model instance has been joined. Rejects all changes made to the model instance since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations. More... | |
void | Save () |
Saves the model instance using the configured proxy More... | |
void | Save (object options) |
Saves the model instance using the configured proxy More... | |
void | Set (string fieldName, object value) |
Sets the given field to the given value, marks the instance as dirty More... | |
void | Set (object values) |
Sets the given field to the given value, marks the instance as dirty More... | |
void | SetId (object id) |
Sets the model instance's id field to the given id More... | |
Static Public Member Functions | |
static string | Serialize (ModelProxy[] array) |
Protected Member Functions | |
virtual int | GetID () |
Properties | |
AbstractStore | Store [get] |
virtual string | ModelInstance [get] |
bool | CreateVariable [get, set] |
virtual string????? | ModelScript [get] |
Class for model instance manipulation
|
inline |
store | |
id |
|
inline |
store | |
id | |
isInternal |
|
inline |
store | |
index |
|
inline |
store |
|
inline |
store | |
expression |
|
inline |
Aborts a pending load operation. If the record is not loading, this does nothing.
|
inline |
Begin an edit. While in edit mode, no events (e.g. the update event) are relayed to the containing store. When an edit has begun, it must be followed by either endEdit or cancelEdit.
|
inline |
Cancels all changes made in the current edit operation.
|
inline |
Creates a clone of this record. States like dropped, phantom and dirty are all preserved in the cloned record.
|
inline |
Usually called by the Ext.data.Store which owns the model instance. Commits all changes made to the instance since either creation or the last commit operation. Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations.
|
inline |
Usually called by the Ext.data.Store which owns the model instance. Commits all changes made to the instance since either creation or the last commit operation. Developers should subscribe to the Ext.data.Store.update event to have their code notified of commit operations.
silent | True to skip notification of the owning store of the change |
|
inline |
Destroys the model using the configured proxy
|
inline |
Destroys the model using the configured proxy
options | Options to pass to the proxy |
|
inline |
Marks this record as dropped and waiting to be deleted on the server. When a record is dropped, it is automatically removed from all association stores and any child records associated to this record are also dropped (a "cascade delete") depending on the cascade parameter.
cascade | Pass false to disable the cascade to drop child records. Defaults to true. |
|
inline |
End an edit. If any data was modified, the containing store is notified (ie, the store's update event will fire).
|
inline |
End an edit. If any data was modified, the containing store is notified (ie, the store's update event will fire).
silent | True to not notify the store of the change |
|
inline |
Destroys the model using the configured proxy.
options | Config options for this load. |
|
inlineprotectedvirtual |
|
inline |
Load the model instance using the configured proxy.
|
inline |
Load the model instance using the configured proxy.
options |
|
inline |
Usually called by the Ext.data.Store to which this model instance has been joined. Rejects all changes made to the model instance since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations.
|
inline |
Usually called by the Ext.data.Store to which this model instance has been joined. Rejects all changes made to the model instance since either creation, or the last commit operation. Modified fields are reverted to their original values. Developers should subscribe to the Ext.data.Store.update event to have their code notified of reject operations.
silent | reject |
|
inline |
Saves the model instance using the configured proxy
|
inline |
Saves the model instance using the configured proxy
options | Options to pass to the proxy |
|
inlinestatic |
array |
|
inline |
Sets the given field to the given value, marks the instance as dirty
values | Object with values |
|
inline |
Sets the given field to the given value, marks the instance as dirty
fieldName | The field to set |
value | The value to set |
|
inline |
Sets the model instance's id field to the given id
id | The new id |
|
getset |
|
get |
|
getprotected |
|
get |