i am not getting any values from dropdowns in my nested content... any thougths on the way to retreve those values? Just using the simple dropdown list.
In what sense do you mean get the dropdown values? Just getting the selected option?
I've just setup a dummy dropdown list property, assigned it to my NC doc type, and selected a value in the editor. In my razor file I simply call the following to get it's value:
@item.GetPropertyValue("myDropdownPropAlias")
(where item is an IPublishedContent within a foreach loop of the the NC items)
So it turns out it was an issue with DTGE not serializing values correctly at render time. I've released a 0.1.1 package on the DTGE page with a fix in place if you want to download it and update your package.
How would i go about rendering dropdown values?
i am not getting any values from dropdowns in my nested content... any thougths on the way to retreve those values? Just using the simple dropdown list.
thanks,
bob
Hey Bob,
In what sense do you mean get the dropdown values? Just getting the selected option?
I've just setup a dummy dropdown list property, assigned it to my NC doc type, and selected a value in the editor. In my razor file I simply call the following to get it's value:
(where item is an IPublishedContent within a foreach loop of the the NC items)
Is this not working for you?
Many thanks
Matt
it don't work
Ok, I see the problem. You are using NC inside a DTGE and that looks like it's just returning the ID, rather than resolving the value.
I'll take a look and get back to you.
Matt
Hey Bob,
So it turns out it was an issue with DTGE not serializing values correctly at render time. I've released a 0.1.1 package on the DTGE page with a fix in place if you want to download it and update your package.
https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor
Thanks for reporting the issue.
Matt
is working on a reply...