Hi Jiri,
The easy answer (probably) is to set it on your content type using:
public override void SetDefaultValues(ContentType contentType) { base.SetDefaultValues(contentType); Priority = MailPriority.Low, }
Do you have any reason not to use this approach?
/Jake
Ah, ok.
In Admin > Content Type can you navigate to a content type that is using your Priority property. What type is it? I'm expecting integer from your code above.
It’s Long string :-( but you intention was right. Setting it to int fixed the problem. I spent with it some hours. Thank you.
Hitting the "Revert to Default" button should fix that -- if I remember correctly.
I need to use System.Net.Mail.MailPriority as enum on property. I have found many recepies how to do it but none of them worked.
Code:
Issue is that default value from editor descriptor is not mapped in any case. It takes 0 – normal. I am affraid I have found bug.
On setting
on value change I got (XHR) response from server
EPiServer.CMS.Shell.UI 11.4.4.0.
Am I doing something wrong in order to setup this simple enum selection on model?