I have a Model with an integer property: IntegratorType, valid values are 0 and 1 for Old and New style integrator.
I added a enum IntegratorTypes with Old and New.:
public enum IntegratorTypes
{
[Description("Old")]
Old = 0,
[Description("New")]
New = 1,
};
Then a property for the field:
[Display(Prompt = "Integrator Type", Name ="Integrator Type")]
public IntegratorTypes IntegratorType
{
get => integratorTypeSelect;
set
{
integratorTypeSelect = value;
RaisePropertyChanged("IntegratorTypeSelect");
}
}
When I receive the data from the server, the properties are filled with right values, anyway as soon as I open a new Page with a SfDataForm on it and I bind the object to the form, it automatically changes the value of the field to Old.