SnapFieldOptions.EnableEmptyFieldDataAlias Property

Enables the application displaying a custom text instead of a blank space if a Snap field receives an empty data source record.

Namespace: DevExpress.Snap.Core.Options

Assembly: DevExpress.Snap.v20.1.Core.dll

Declaration

[DefaultValue(true)]
public bool EnableEmptyFieldDataAlias { get; set; }
<DefaultValue(True)>
Public Property EnableEmptyFieldDataAlias As Boolean

Property Value

Type Default Description
Boolean

true

true to replace empty data records with an alias in the document; otherwise false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableEmptyFieldDataAlias
SnapControl
.Options.Fields.EnableEmptyFieldDataAlias
SnapControlOptions
.Fields.EnableEmptyFieldDataAlias

Remarks

The SnapSingleListItemEntity.EmptyFieldDataAlias property specifies the text displayed by empty document fields.

TIP

Use the SnapImage.ShowPlaceholder property to show a placeholder instead of the blank space. This property has effect only if the EnableEmptyFieldDataAlias property is set to false.

See Also