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.
Enum DropDown Picker and custom Keys
I am using nuPickers.Shared.EnumDataSource to set the key in an enumeration that I use in an "Enum DropDown Picker" editor.
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)
Hi Arturo,
I think you need to use this :
See the documentation : https://github.com/uComponents/nuPickers/wiki/Model#asenumst-and-asenums
Dave
I had tried, but
returns 0
While
returns 1.
Hmm,
Strange. I just checked one of my projects and there this is working.
Dave
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...