BaseChoiceField members
Provides core functionality for controls that render fields (on form pages, but not on list view pages) whose value is usually selected by users from a set of options, such as a drop-down list, a set of option buttons, or a set of check boxes.
The BaseChoiceField type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BaseChoiceField | Initializes a new instance of the BaseChoiceField class. |
Top
Properties
Name | Description | |
---|---|---|
Adapter | (Inherited from Control.) | |
AllowFirstFocus | Gets a value indicating whether the page, on loading, can set the initial focus to the BaseFieldControl. (Inherited from BaseFieldControl.) | |
AlternateTemplate | Gets or sets the template that renders the control in contexts, such as a particular form, in which rendering the control with the Template property would be inappropriate. (Inherited from TemplateBasedControl.) | |
AlternateTemplateName | Gets or sets the name of a rendering template that can be used in contexts in which the template named by the TemplateName property would be inappropriate. (Inherited from TemplateBasedControl.) | |
AppRelativeTemplateSourceDirectory | (Inherited from Control.) | |
BindingContainer | (Inherited from Control.) | |
CanCacheRenderedFieldValue | Gets or sets a value indicating whether the value of BaseFieldControl may be locally cached. (Inherited from BaseFieldControl.) | |
ChildControlsCreated | (Inherited from Control.) | |
ClientID | (Inherited from Control.) | |
ClientIDMode | (Inherited from Control.) | |
ClientIDSeparator | (Inherited from Control.) | |
ComponentRequiresPostback | BaseFieldControl is base class of server form controls for various SPFields These controls render editing cotrols and require postback if no client template exists (Inherited from BaseFieldControl.) | |
Context | (Inherited from Control.) | |
ControlMode | Gets or sets the rendering mode for the form (display, edit, or new). (Inherited from FormComponent.) | |
Controls | Gets an object that contains the child controls of the TemplateBasedControl object. (Inherited from TemplateBasedControl.) | |
ControlTemplate | Gets the template that renders the control in the current context. (Inherited from TemplateBasedControl.) | |
CssClass | Gets or sets the styling class in a cascading style sheet (CSS) file that controls the font family, font size, and possibly other aspects of how the text of the field is rendered. (Inherited from BaseFieldControl.) | |
CustomAlternateTemplate | Gets or sets a custom alternate template. (Inherited from TemplateBasedControl.) | |
CustomTemplate | Gets or sets a custom template. (Inherited from TemplateBasedControl.) | |
DataItemContainer | (Inherited from Control.) | |
DataKeysContainer | (Inherited from Control.) | |
DefaultAlternateTemplateName | Gets the name of the default alternate rendering template. (Inherited from TemplateBasedControl.) | |
DefaultTemplateName | Gets the name of the default rendering template. (Inherited from TemplateBasedControl.) | |
DesignMode | (Inherited from Control.) | |
DisableInputFieldLabel | Gets a value indicating whether the default input field label should be used on the New or Edit forms. (Inherited from BaseFieldControl.) | |
DisplaySize | Gets or sets the maximum number of characters to display when rendering the field. (Inherited from FieldMetadata.) | |
DisplayTemplate | Gets or sets an object that can be used to control the rendering of the BaseFieldControl object in display mode; that is, when it is not on a New or Edit form. (Inherited from BaseFieldControl.) | |
DisplayTemplateName | Gets or sets the name of the template that can be used to control the rendering of the BaseFieldControl object in display mode; that is, when it is not on a New or Edit form. (Inherited from BaseFieldControl.) | |
EnableInputFieldLabels | (Inherited from FormComponent.) | |
EnableTheming | (Inherited from Control.) | |
EnableViewState | (Inherited from Control.) | |
ErrorMessage | Gets or sets a message indicating that, and possibly why, the current value of Value is invalid. (Inherited from BaseFieldControl.) | |
Events | (Inherited from Control.) | |
Field | Gets the underlying SPField object that is rendered by the FieldMetadata object. (Inherited from FieldMetadata.) | |
FieldName | Gets or sets a name for the field. (Inherited from FieldMetadata.) | |
Fields | Gets the collection of fields. (Inherited from FormComponent.) | |
FillInOptionText | Gets or sets the initial text that users see in the text box for the field control before it has been set to a real value for the first time. | |
FillInTextBoxControl | Gets the child text box control in which a user types a custom value. | |
HasChildViewState | (Inherited from Control.) | |
HasPostBackEditData | Gets a value that indicates whether the data of BaseFieldControl might have changed as a result of the last postback. (Inherited from BaseFieldControl.) | |
ID | (Inherited from Control.) | |
IdSeparator | (Inherited from Control.) | |
InDesign | (Inherited from SPControl.) | |
InputFieldLabel | Gets or sets the label of BaseFieldControl in design mode. (Inherited from BaseFieldControl.) | |
IsChildControlStateCleared | (Inherited from Control.) | |
IsClientRenderedForm | Determines whether this FormField control is being added to a CSR (Hybrid) Form (Inherited from FormComponent.) | |
IsEditMode | (Inherited from FormComponent.) | |
IsFieldValueCached | Gets a value indicating whether the value of the field is cached. (Inherited from BaseFieldControl.) | |
IsInDesignTimeMode | Returns true if the control's current context is in design time mode. (Inherited from BaseFieldControl.) | |
IsInInlineEditMode | returns true if the control is hosted by webparts (like xsltlistwebpart) in inline edit mode. (Inherited from BaseFieldControl.) | |
IsTrackingViewState | (Inherited from Control.) | |
IsValid | Gets or sets a value that indicates whether the current value of the Value property is valid. (Inherited from BaseFieldControl.) | |
IsViewStateEnabled | (Inherited from Control.) | |
Item | Gets the value that represents the item. (Inherited from FormComponent.) | |
ItemContext | Gets or sets the context of the item. (Inherited from FormComponent.) | |
ItemFieldValue | Gets or sets the value of the SPField that has this BaseFieldControl as its FieldRenderingControl property. (Inherited from BaseFieldControl.) | |
ItemId | Gets or sets the ID for the list item. (Inherited from FormComponent.) | |
ItemIdAsString | Gets or sets the ID, as a string, for the list item. (Inherited from FormComponent.) | |
List | Gets the value that represents the list of form components. (Inherited from FormComponent.) | |
ListFormWP | (Inherited from FormComponent.) | |
ListId | Gets or sets the ID of the list. (Inherited from FormComponent.) | |
ListItem | Gets the value that represents the list item, based on the ListItemID property. (Inherited from FormComponent.) | |
ListItemFieldValue | Reserved for internal use. (Inherited from BaseFieldControl.) | |
LoadViewStateByID | (Inherited from Control.) | |
NamingContainer | (Inherited from Control.) | |
NumberOfChoices | Gets the number of possible values from which the user can choose a value for the field. | |
Page | (Inherited from Control.) | |
PageUri | Gets or sets the Uniform Resource Identifier (URI) of the page that contains the control. (Inherited from SPControl.) | |
Parent | (Inherited from Control.) | |
PreviousControlMode | Gets a value that identifies the control mode of the BaseFieldControl object before the last postback. (Inherited from BaseFieldControl.) | |
RecurrenceID | Gets or sets the string value that represents the recurrence ID. (Inherited from FormComponent.) | |
RedirectUrl | Gets or sets the string value that represents the redirect URL. (Inherited from FormComponent.) | |
RegisterAs | (Inherited from SPControl.) | |
RenderContext | Gets or sets the Microsoft SharePoint Foundation context in which the control is rendered. (Inherited from TemplateBasedControl.) | |
RenderingCompatibility | (Inherited from Control.) | |
RibbonCommand | (Inherited from FormComponent.) | |
RibbonContextualGroupCommand | (Inherited from FormComponent.) | |
RibbonGroupCommand | (Inherited from FormComponent.) | |
RibbonTabCommand | (Inherited from FormComponent.) | |
Site | (Inherited from Control.) | |
SkinID | (Inherited from Control.) | |
TabIndex | Gets or sets the position of the BaseFieldControl in the tab order of controls on the page. (Inherited from BaseFieldControl.) | |
Template | Gets or sets the template that renders the control. (Inherited from TemplateBasedControl.) | |
TemplateContainer | Gets the container control that instantiates the content template. (Inherited from TemplateBasedControl.) | |
TemplateControl | (Inherited from Control.) | |
TemplateName | Gets or sets the name of the control's rendering template. (Inherited from TemplateBasedControl.) | |
TemplateOverride | Gets or sets a value indicating whether the template referred to by the Template property or the one referred to by the AlternateTemplate property should be instantiated by the CreateChildControls method. (Inherited from TemplateBasedControl.) | |
TemplateSourceDirectory | (Inherited from Control.) | |
UniqueID | (Inherited from Control.) | |
Value | When overridden in a derived class, gets or sets the value of the field in the UI. (Inherited from BaseFieldControl.) | |
Version | Gets or sets the a value that indicates whether the UI of the parent Web site is using the UI of the current version of the SharePoint Foundation or the previous version. (Inherited from TemplateBasedControl.) | |
ViewState | (Inherited from Control.) | |
ViewStateIgnoresCase | (Inherited from Control.) | |
ViewStateMode | (Inherited from Control.) | |
Visible | Gets or sets a value indicating whether the field is visible or hidden. (Inherited from BaseFieldControl.) | |
Web | Gets the site of the control's rendering context; which is the value of the SPContext.Web property of the object held by the TemplateBasedControlRenderContext() property. (Inherited from TemplateBasedControl.) |
Top
Methods
Name | Description | |
---|---|---|
AddedControl | (Inherited from Control.) | |
AddParsedSubObject | (Inherited from Control.) | |
ApplyStyleSheetSkin | (Inherited from Control.) | |
BuildProfileTree | (Inherited from Control.) | |
ClearCachedClientID | (Inherited from Control.) | |
ClearChildControlState | (Inherited from Control.) | |
ClearChildState | (Inherited from Control.) | |
ClearChildViewState | (Inherited from Control.) | |
ClearEffectiveClientIDMode | (Inherited from Control.) | |
CreateChildControls | Creates any child controls necessary to render the field, such as a label control, link control, or text box control. (Inherited from BaseFieldControl.) | |
CreateControlCollection | (Inherited from Control.) | |
DataBind() | (Inherited from Control.) | |
DataBind(Boolean) | (Inherited from Control.) | |
DataBindChildren | (Inherited from Control.) | |
Dispose | (Inherited from Control.) | |
EnsureChildControls | (Inherited from Control.) | |
EnsureID | (Inherited from Control.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FindControl(String) | (Inherited from Control.) | |
FindControl(String, Int32) | (Inherited from Control.) | |
Focus | When overridden in a derived class, sets focus to the rendered field. (Inherited from BaseFieldControl.) | |
GetDesignModeState | (Inherited from Control.) | |
GetDesignTimeHtml | Returns the control as design-time HTML for editing in Web site development tools such as Microsoft Office FrontPage 2003. (Inherited from SPControl.) | |
GetHashCode | (Inherited from Object.) | |
GetRouteUrl(Object) | (Inherited from Control.) | |
GetRouteUrl(RouteValueDictionary) | (Inherited from Control.) | |
GetRouteUrl(String, Object) | (Inherited from Control.) | |
GetRouteUrl(String, RouteValueDictionary) | (Inherited from Control.) | |
GetType | (Inherited from Object.) | |
GetUniqueIDRelativeTo | (Inherited from Control.) | |
HasControls | (Inherited from Control.) | |
HasEvents | (Inherited from Control.) | |
IsLiteralContent | (Inherited from Control.) | |
LoadControlState | (Inherited from Control.) | |
LoadViewState | (Inherited from Control.) | |
MapPathSecure | (Inherited from Control.) | |
MemberwiseClone | (Inherited from Object.) | |
OnBubbleEvent | (Inherited from Control.) | |
OnDataBinding | (Inherited from Control.) | |
OnInit | Represents the method that handles the Init event of a FieldMetadata object. (Inherited from BaseFieldControl.) | |
OnLoad | Represents the method that handles the Load event of a FieldMetadata object. (Inherited from BaseFieldControl.) | |
OnPreRender | Represents the method that handles the PreRender event of a FieldMetadata object. (Inherited from BaseFieldControl.) | |
OnUnload | (Inherited from Control.) | |
OpenFile | (Inherited from Control.) | |
RaiseBubbleEvent | (Inherited from Control.) | |
RegisterFieldControl | Registers the BaseFieldControl by adding it to the collections of validators and field controls. (Inherited from BaseFieldControl.) | |
RemovedControl | (Inherited from Control.) | |
Render | Renders the field on the page. (Inherited from BaseFieldControl.) | |
RenderChildren | (Inherited from Control.) | |
RenderControl(HtmlTextWriter) | (Inherited from Control.) | |
RenderControl(HtmlTextWriter, ControlAdapter) | (Inherited from Control.) | |
RenderFieldForDisplay | Renders the field for noneditable display. (Inherited from BaseFieldControl.) | |
RenderFieldForInput | When overridden in derived class, renders the field in a child control that lets its value be changed. (Inherited from BaseFieldControl.) | |
RenderValidationMessage | Renders an error message about the invalidity of the value in the Value property. (Inherited from BaseFieldControl.) | |
ResolveAdapter | (Inherited from Control.) | |
ResolveClientUrl | (Inherited from Control.) | |
ResolveUrl | (Inherited from Control.) | |
SaveControlState | (Inherited from Control.) | |
SaveViewState | (Inherited from Control.) | |
SetDesignModeState | (Inherited from Control.) | |
SetRenderMethodDelegate | (Inherited from Control.) | |
ToString | (Inherited from Object.) | |
TrackViewState | (Inherited from Control.) | |
UpdateFieldValueInItem | Updates the underlying value of the field to the latest user-set value. (Inherited from BaseFieldControl.) | |
Validate | Verifies that the value of Value meets all restrictions on field content such as length, format, and data type (Overrides BaseFieldControl.Validate().) |
Top
Events
Name | Description | |
---|---|---|
DataBinding | (Inherited from Control.) | |
Disposed | (Inherited from Control.) | |
Init | (Inherited from Control.) | |
Load | (Inherited from Control.) | |
PreRender | (Inherited from Control.) | |
Unload | (Inherited from Control.) |
Top
Explicit interface implementations
Name | Description | |
---|---|---|
IParserAccessor.AddParsedSubObject | (Inherited from Control.) | |
IControlBuilderAccessor.ControlBuilder | (Inherited from Control.) | |
IDataBindingsAccessor.DataBindings | (Inherited from Control.) | |
IExpressionsAccessor.Expressions | (Inherited from Control.) | |
IControlDesignerAccessor.GetDesignModeState | (Inherited from Control.) | |
IDataBindingsAccessor.HasDataBindings | (Inherited from Control.) | |
IExpressionsAccessor.HasExpressions | (Inherited from Control.) | |
IDesignerEventAccessor.OnDesignerLoad | (Inherited from SPControl.) | |
IDesignerEventAccessor.OnDesignerPreRender | (Inherited from SPControl.) | |
IControlDesignerAccessor.SetDesignModeState | (Inherited from Control.) | |
IControlDesignerAccessor.SetOwnerControl | (Inherited from Control.) | |
IControlDesignerAccessor.UserData | (Inherited from Control.) |
Top