Cascading Attribute

inherits CustomModelMetadataAttribute

CascadingAttribute is an attribute affixed to a view model property when that property should be created as a cascading drop down.

Instance Properties

Property Description
Action The relative controller/action path used to get data for a cascading drop down.
Async Gets or sets if the client side ajax request should be async. Default is true.
DependsOn Gets or sets the parent property this cascading drop down bases its own values off of.
ErrorText Gets or sets the error message displayed to the client if the ajax request fails. If one isn't set, the error message defaults to the settings in jquery.detergent.js.
HttpMethod Gets or sets the http method for the ajax request. Default is "GET".
LoadingText Gets or sets the loading message displayed to the client while data is being loaded. If one isn't set, the loading message defaults to the settings in jquery.detergent.js.
PromptText Gets or sets the error message displayed to the client when there is no data selected from its dependent drop down. If one isn't set, the prompt message defaults to the settings in jquery.detergent.js.
OwningProperty Gets the name of the property this instance is attached to


Static Properties

Property Description
EnableAsync Gets or sets the default Async value for all CascadingAttribute instances. If an instance doesn't have the Async value set, it will defer to this value. Default is true.
TemplateHint Gets or sets the UITemplateHint for all instances. |


Static Methods

Property Description
GetAttributeForModel Gets the CascadingAttribute instance that belongs to a ModelMetadata instance.



Last edited Feb 17, 2012 at 9:59 PM by rossisdead, version 15

Comments

No comments yet.