How do I refer to a datatype and its prevalues in .NET code?
For example, say I have a datatype of "Country Drop Down" which is, funnily enough, a drop down list of countries.
This is fine for using within the CMS, but I would like to use the same datatype in .NET code. I.e. bind an asp.net dropdownlist to the list of prevalues.
I did come across that post in my travels but should have asked - how do I get the datatypeid? There's no properties tab for the datatypes and no mention of an id.
How do I refer to a datatype and its prevalues in .NET code?
For example, say I have a datatype of "Country Drop Down" which is, funnily enough, a drop down list of countries.
This is fine for using within the CMS, but I would like to use the same datatype in .NET code. I.e. bind an asp.net dropdownlist to the list of prevalues.
How do I go about doing this in code?
http://our.umbraco.org/forum/developers/api-questions/2867-Get-custom-dropdown-datatype-values
Cheers,
/Dirk
Cheers Dirk.
I did come across that post in my travels but should have asked - how do I get the datatypeid? There's no properties tab for the datatypes and no mention of an id.
Hi Pete,
Hover over the datatype in the tree you'll see the id passed into a javascript call that updates the right hand panel.
Thanks Hendy ;-)
is working on a reply...