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 have created a checkbox list type of data type in umbraco. see below screen shot
I am able to get the text value of this data type which is "All" in this case. But I am unable to get the Value in code.
umbraco.library.IProperty property = node.GetProperty("countries"); string val = property.Value;
I also looked at all the property fields but Value of this is not available. Any one has any idea I am using Umbraco 6.2.4
Hi Raj,
Try to see the documentation about how to get data out of the checkbox list. http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/Checkbox-List There a examples for Razor and XSLT. I you are not using the old DynamicNode Razor, and I recommend you not to do this take a look at this http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/CheckBox-List
I think that you can use the dynamic or strongly typed example from this http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/CheckBox-List
Hope this helps,
/Dennis
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get value of umbraco datatype in code
I have created a checkbox list type of data type in umbraco. see below screen shot
I am able to get the text value of this data type which is "All" in this case. But I am unable to get the Value in code.
I also looked at all the property fields but Value of this is not available. Any one has any idea I am using Umbraco 6.2.4
Hi Raj,
Try to see the documentation about how to get data out of the checkbox list. http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/Checkbox-List There a examples for Razor and XSLT. I you are not using the old DynamicNode Razor, and I recommend you not to do this take a look at this http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/CheckBox-List
I think that you can use the dynamic or strongly typed example from this http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/Built-in-Property-Editors-v7/CheckBox-List
Hope this helps,
/Dennis
is working on a reply...