The requested page is not available for the requested platform. You are viewing the content for Default platform.

WebPropertyEditor.NullText Property

Specifies the text displayed by WebPropertyEditor when its ControlValue is null.

Namespace: DevExpress.ExpressApp.Web.Editors

Assembly: DevExpress.ExpressApp.Web.v19.1.dll

Declaration

public string NullText { get; set; }
Public Property NullText As String

Property Value

Type Description
String

A string displayed instead of the null value.

Remarks

The following View Controller changes this property value for the "MyStringProperty" editor in a MyObject Detail View.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Web.Editors;
// ...
public class MyViewController : ObjectViewController<DetailView, MyObject> {
    protected override void OnActivated() {
        base.OnActivated();
        WebPropertyEditor propertyEditor = View.FindItem("MyStringProperty") as WebPropertyEditor;
        if(propertyEditor != null) {
            propertyEditor.NullText = "Type your text here...";
        }
        // ...
    }
}
See Also