Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am using nuPickers.Shared.EnumDataSource to set the key in an enumeration that I use in an "Enum DropDown Picker" editor.
public enum PiwikSitios
[EnumDataSource(Label = "First option", Key ="1")]
[EnumDataSource(Label = "Last option",Key ="2")]
I expected that
returns "1" but returns "Option1".
I have also tried with
But it returns a zero items collection.
Any suggestion? (Versions Umbraco 7.6.4 nuPickers 1.7.0)
I think you need to use this :
See the documentation : https://github.com/uComponents/nuPickers/wiki/Model#asenumst-and-asenums
I had tried, but
Strange. I just checked one of my projects and there this is working.
Thank you, give hope, on Monday I will try some things.
Everything is working !. I even retrieve the key by directly using the PickedKeys property. The strange thing is that I have simply changed the storage format of the editor to JSON, then it has worked, I have returned to CSV, it was still working. I've probably triggered an update of the collection of keys somewhere.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted