ViewModelManager Members

Manages client-side View Model properties, functions, parameters and data sources.

Constructors

Name Description
ViewModelManager()

Creates an instance of the ViewModelManager class.

Properties

Name Description
DataSources

Provides access to the data sources available in a View Model.

Functions

Provides access to a collection of functions registered in a View Model.

(Inherited from ClientModelManager)
Properties

Provides access to a collection of properties registered in a View Model.

(Inherited from ClientModelManager)
Values

Obsolete. This property is obsolete. Use the property instead.

(Inherited from ClientModelManager)

Methods

Name Description
BindToDataSource(String)
BindToModel(String)

Returns the client-side binding string (e.g., $global.CurrentObject or $model.CurrentObject).

(Inherited from ClientModelManager)
BindToModel(String, Object)

Updates the client-side View Model properties on the server-side and returns the client-side binding string (e.g., $global.CurrentObject or $model.CurrentObject).

(Inherited from ClientModelManager)
BindToModelCheckForNull(String)

For internal use only.

(Inherited from ClientModelManager)
Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) Determines whether the specified object instances are considered equal.
(Inherited from Object)
GetCheckForNullPropertiesScript(String)

For internal use.

(Inherited from ClientModelManager)
GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetPropertyValue(String)

Returns a value of the specified client-side View Model property on the server-side.

(Inherited from ClientModelManager)
GetType() Gets the of the current instance.
(Inherited from Object)
GetUsedProperties()

For internal use.

(Inherited from ClientModelManager)
MemberwiseClone() Creates a shallow copy of the current .
(Inherited from Object)
ReferenceEquals(Object, Object) Determines whether the specified instances are the same instance.
(Inherited from Object)
RegisterDataSource(String, Object)

Adds a DataSource object to a View Model.

RegisterFunction(String, String)

Register a Java Script function in a View Model

(Inherited from ClientModelManager)
RegisterParameter(String, DataStore)

Adds a MobileModel.Parameter object to a View Model.

RegisterProperty(ModelProperty)

Add the specified property in a View Model.

(Inherited from ClientModelManager)
RegisterProperty(String)

Adds a property with the specified name in a View Model.

(Inherited from ClientModelManager)
ToString() Returns a string that represents the current object.
(Inherited from Object)
UpdatePropertyValue(String, Object)

Updates the specified client-side View Model property on the server-side. After processing a client request, the updated property values are transferred to the client-side and applied to the View Model.

(Inherited from ClientModelManager)
UpdatePropertyValue(String, Object, Object)

For internal use.

(Inherited from ClientModelManager)

Events

Name Description
ClientModelRestored

Occurs after the View Model is restored.

(Inherited from ClientModelManager)
ViewModelRestored

Obsolete. This event is obsolete. Use the event instead.

(Inherited from ClientModelManager)
See Also