ObjectSelectorProperties Class |
Namespace: Kentico.Components.Web.Mvc.FormComponents
public class ObjectSelectorProperties : ObjectSelectorPropertiesBase<ObjectSelectorItem>
The ObjectSelectorProperties type exposes the following members.
Name | Description | |
---|---|---|
ObjectSelectorProperties |
Name | Description | |
---|---|---|
DataType |
Gets or sets the underlying field data type.
(Inherited from FormComponentProperties.) | |
DefaultValue |
When overridden in a derived class, gets or sets the default value of the form component and underlying field.
Use the DefaultValueEditingComponentAttribute to specify a form component for editing.
(Inherited from ObjectSelectorPropertiesBaseTItem.) | |
ExplanationText |
Gets or sets the explanation text of the form component.
(Inherited from FormComponentProperties.) | |
Guid |
Gets or sets the underlying field GUID.
(Inherited from FormComponentProperties.) | |
IdentifyObjectByGuid |
Indicates whether the Object selector uses the object's GUID column value to identify the object. If set to the object's code name column value is used. Defaults to .
It's recommended to have it set to , ie. identify objects by their code names if a performance is a concern. The reason is that most system object types incorporate provider-level cache by the object's code name, not its GUID. | |
IncludeGlobalObjects |
Indicates whether global objects should be also returned in case when the ObjectType may exist in both site and global form.
| |
Label |
Gets or sets the label of the form component.
(Inherited from FormComponentProperties.) | |
MaxItemsLimit |
Configures the maximum number of items allowed to be selected.
(Inherited from ObjectSelectorPropertiesBaseTItem.)
| |
Name |
Gets or sets the underlying field name.
(Inherited from FormComponentProperties.) | |
ObjectType |
Defines which objects will be displayed in the selector.
| |
OrderBy |
Defines a list of columns which the data should be sorted by, e.g. ["NodeLevel", "DocumentName DESC"]
| |
Placeholder |
Gets or sets the value displayed as placeholder in the input.
Override and annotate with EditingComponentAttribute to make this property
editable in properties panel.
(Inherited from FormComponentProperties.) | |
Precision |
Gets or sets the underlying field precision.
(Inherited from FormComponentProperties.) | |
Required |
Gets or sets value indicating whether the underlying field is required. False by default.
If false, the form component's implementation must accept nullable input.
(Inherited from FormComponentProperties.) | |
Size |
Gets or sets the underlying field size.
(Inherited from FormComponentProperties.) | |
SmartField |
Gets or sets value indicating whether the underlying field is smart field. False by default.
(Inherited from FormComponentProperties.) | |
Tooltip |
Gets or sets the tooltip of the form component.
(Inherited from FormComponentProperties.) | |
ValidationRuleConfigurations |
Gets or sets validation rule configurations assigned to the form component.
(Inherited from FormComponentProperties.) | |
VisibilityConditionConfiguration |
Gets or sets visibility condition configuration assigned to the form component.
(Inherited from FormComponentProperties.) | |
WhereConditionProviderType |
Defines the type which provides the WhereCondition that will be applied to the database query.
The where condition provider type must implement the IObjectSelectorWhereConditionProvider interface. |
Name | Description | |
---|---|---|
GetDefaultValue |
Gets the default value. The DefaultValue property can be used
directly to obtain the typed default value.
(Inherited from FormComponentPropertiesTValue.) | |
SetDefaultValue |
Sets the default value to value.
The value must be of type TValue or an exception is thrown.
The DefaultValue property can be used directly to set the typed default value.
(Inherited from FormComponentPropertiesTValue.) |