IModelCommonMemberViewItem.PredefinedValues Property
Specifies predefined values for the current Property Editor, separated by semicolons.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v21.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
String | A string specifying predefined values for the current Property Editor, separated by semicolons. |
Remarks
You can specify the PredefinedValues value in the Model Editor
This property is considered for string type properties. End-users will be able to select either one of the predefined values, or set their own. To include a semicolon into a predefined value, type \;. If you need to include \ into a value, type \\.
Alternatively, you can specify predefined values in code by using the ModelDefaultAttribute attribute.
[ModelDefault("PredefinedValues",
"Predefined Value 1;Predefined Value 2;Predefined Value 3;Predefined Value 4")]
public string StringWithPredefinedValuesProperty {
get { return stringWithPredefinedValuesProperty; }
set { stringWithPredefinedValuesProperty = value; }
}
If you want to fill the predefined values list dynamically, use a custom property editor demonstrated in the following topics:
- How to: Supply Predefined Values for the String Property Editor Dynamically (WinForms)
- How to: Supply Predefined Values for the String Property Editor Dynamically (ASP.NET Web Forms)