Class ControlData
Represents the metadata for a control in a form.
Inherited Members
Namespace: DataWeb.Data
Assembly: DataWeb.Core.dll
Syntax
public class ControlData
Properties
ControlClass
Gets or sets the CSS class for the control.
Declaration
public string ControlClass { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomControlComponent
Gets or sets the custom control component for the control.
Declaration
public string CustomControlComponent { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomControlOptions
Gets or sets the options for the custom control component.
Declaration
public object CustomControlOptions { get; set; }
Property Value
Type | Description |
---|---|
object |
DataField
Gets or sets the data field of the control.
Declaration
public string DataField { get; set; }
Property Value
Type | Description |
---|---|
string |
DataSource
Gets or sets the data source of the control.
Declaration
public string DataSource { get; set; }
Property Value
Type | Description |
---|---|
string |
DataSourceMode
Gets or sets the data source mode of the control.
Declaration
public string DataSourceMode { get; set; }
Property Value
Type | Description |
---|---|
string |
DataSubField
Gets or sets the data subfield of the control.
Declaration
public string DataSubField { get; set; }
Property Value
Type | Description |
---|---|
string |
DataType
Gets or sets the data type of the control.
Declaration
public string DataType { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultValue
Gets or sets the default value of the control.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultValueMode
Gets or sets the default value mode of the control.
Declaration
public string DefaultValueMode { get; set; }
Property Value
Type | Description |
---|---|
string |
FileMaxCount
Gets or sets the maximum number of files allowed to be uploaded using the file control.
Declaration
public int? FileMaxCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
FileMaxSize
Gets or sets the maximum size (in bytes) allowed for a file uploaded using the file control.
Declaration
public long? FileMaxSize { get; set; }
Property Value
Type | Description |
---|---|
long? |
FileTagName
Gets or sets the file tag name of the control.
Declaration
public string FileTagName { get; set; }
Property Value
Type | Description |
---|---|
string |
FileTypes
Gets or sets the list of allowed file types for the file control.
Declaration
public List<string> FileTypes { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
FormName
Gets or sets the name of the form the control belongs to.
Declaration
public string FormName { get; set; }
Property Value
Type | Description |
---|---|
string |
Group
Gets or sets the group of the control.
Declaration
public string Group { get; set; }
Property Value
Type | Description |
---|---|
string |
IsLateDataBinding
Gets or sets a value indicating whether the control uses late data binding.
Declaration
public bool IsLateDataBinding { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsLocalization
Gets or sets a value indicating whether the control supports localization.
Declaration
public bool IsLocalization { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsReadOnly
Gets or sets a value indicating whether the control is read-only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsRequired
Gets or sets a value indicating whether the control is required.
Declaration
public bool IsRequired { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsVersionLinked
Gets or sets a value indicating whether the control is version-linked.
Declaration
public bool IsVersionLinked { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsVisible
Gets or sets a value indicating whether the control is visible.
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsVisibleRoles
Gets or sets a value indicating whether the control is visible based on the current user's role.
Declaration
public bool IsVisibleRoles { get; set; }
Property Value
Type | Description |
---|---|
bool |
ListControlNames
Gets or sets the names of the list controls.
Declaration
public string ListControlNames { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxLength
Gets or sets the maximum length of the control.
Declaration
public int? MaxLength { get; set; }
Property Value
Type | Description |
---|---|
int? |
Name
Gets or sets the name of the control.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
RegularExpression
Gets or sets the regular expression used to validate the control.
Declaration
public string RegularExpression { get; set; }
Property Value
Type | Description |
---|---|
string |
StylePath
Gets or sets the style path of the control.
Declaration
public string StylePath { get; set; }
Property Value
Type | Description |
---|---|
string |
Title
Gets or sets the title of the control.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Gets or sets the type of the control.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
VisibleRoles
Gets or sets the list of roles that can see the control.
Declaration
public List<string> VisibleRoles { get; set; }
Property Value
Type | Description |
---|---|
List<string> |