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