WebPropertyEditor.NullText Property

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

Namespace: DevExpress.ExpressApp.Web.Editors

Assembly: DevExpress.ExpressApp.Web.v18.2.dll


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

Property Value

Type Description

A string displayed instead of the null value.


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() {
        WebPropertyEditor propertyEditor = View.FindItem("MyStringProperty") as WebPropertyEditor;
        if(propertyEditor != null) {
            propertyEditor.NullText = "Type your text here...";
        // ...
See Also