Version

BaseEditorModel Class Properties

For a list of all members of this type, see BaseEditorModel members.

Public Properties
 NameDescription
Public PropertyAllowNullValueSets gets ability to prevent null value. If that option is false, and editor has no value, then value is set to an empty string.  
Public PropertyClientEventsSet implementations of client events raised by a widget.

Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events.

Examples:

1. Full implementation:

new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } }

2. Content of inline function:

new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } }

3. Name of global function:

new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note:

Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used.

Example:

new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public PropertyDisabledSets the disabled attribute.Does not allow editing. Disables all the buttons and iteracitons applied.

On submit the current value is not sent into the request.

 
Public PropertyHeightSets initial height of editor.

Number and valid html size-units can be used.

 
Public PropertyHtmlAttributesSets custom attributes for main html element used by control

Dictionary of attributes passed to TagBuilder.MergeAttributes(value).

 
Public PropertyIDSets the ID of the editor.  
Public PropertyInputNameSets the name of the HTML input used to store and submit the editor value. Optional.

Will override the existing name attribute if intialized on an input.

 
Public PropertyLanguageGets/sets Language the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyLocaleGets/sets the Locale of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyNullValueSets gets the representation of null value. Can be either string or numeric. Default is null.  
Public PropertyReadOnlySets the readonly attribute. Does not allow editing. Disables all the buttons and iteracitons applied.

On submit the current value is sent into the request.

 
Public PropertyRegionalGets/sets the Regional of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyTabIndexGets sets value in tabIndex for editor.  
Public PropertyValidatorOptionsSets options supported by the igValidator widget.  
Public PropertyValueGets sets value in editor. The effect of setting/getting that option depends on type of editor and on dataMode options. That can be string, number or Date depending on type of editor.  
Public PropertyWidgetIdBaseThe base string that will be used to auto-generate ID of the widget if the ID option is not set.  
Public PropertyWidgetNameThe name of the widget to be instantiated.  
Public PropertyWidthSets initial width of editor.

Number and valid html size-units can be used.

 
Protected Properties
 NameDescription
Protected PropertyStoreReturn the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub