Imagine being paid to improve your favorite CMS!

It could be you! Umbraco HQ are hiring and are looking for both talents and senior developers. Wonderful workplace, friendly colleagues and competitive salary.

Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Barry Fogarty 465 posts 972 karma points
    Jan 18, 2016 @ 10:54
    Barry Fogarty
    0

    Allow to retrieve raw property value

    I am using a dropdown in my grid editor module that has a large ID value (e.g. 26201430233). When I perform a GetValue(alias), it returns a string of the number in scientific notation e.g. "2.620143E+10" (reminds me of that annoying old Excel problem when pasting in numbers...)

    I digress - the raw stored value is the correct format I want to retrieve so essentially I need to override the property value converters doing their thing. If this was a standard property I could perform a GetValue(alias).DataValue, but I do not know how to do this with LeBlender.

    Any ideas? Thanks

  • Barry Fogarty 465 posts 972 karma points
    Feb 01, 2016 @ 17:13
    Barry Fogarty
    0

    I worked around this issue by adding a method to return the raw property datavalue myself. Hopefully it can be of use to others:

    https://github.com/Lecoati/LeBlender/pull/24

Please Sign in or register to post replies

Write your reply to:

Draft