Custom grid editor populated by existing Data Type
Hi guys,
I am creating a custom Grid Editor to display a dropdown list with a list of colours. I have hard coded the list of options and it all works fine.
I have a Data Type that stores the list of colours available that is used elsewhere in Umbraco and it would be nice to get the list of options from the same source.
Is it possible to populate the list of options in the dropdown from an existing Data Type, and how would I go about this? Do I need to hook into the DataTypeService somehow?
Custom grid editor populated by existing Data Type
Hi guys,
I am creating a custom Grid Editor to display a dropdown list with a list of colours. I have hard coded the list of options and it all works fine.
I have a Data Type that stores the list of colours available that is used elsewhere in Umbraco and it would be nice to get the list of options from the same source.
Is it possible to populate the list of options in the dropdown from an existing Data Type, and how would I go about this? Do I need to hook into the DataTypeService somehow?
My editor:
My controller:
I've scoured the documentation and internet but can't seem to find what i'm looking for.
Any help would be greatly appreciated!
Thanks
is working on a reply...