Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.2
  • 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.v21.2.Core.dll

    NuGet Package: DevExpress.Snap.Core

    Declaration

    [DefaultValue(true)]
    public bool EnableEmptyFieldDataAlias { get; set; }

    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
    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