Copied to clipboard

Flag this post as spam?

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


  • Gibran Shah 69 posts 240 karma points
    Feb 20, 2019 @ 03:28
    Gibran Shah
    0

    looking for a financial property editor

    Hello,

    I'm looking for a property editor for document types that deals with financial values. What I have in mind is something that takes a number, accepts up to 2 decimals (adds them if not present) and appends a $ at the beginning (or symbols for other currencies).

    For example, if I enter 275, it renders as $275.00.

    Is there a proporty editor like this?

  • Marius 6 posts 77 karma points
    Feb 28, 2019 @ 17:08
    Marius
    1

    You can achieve this in razor. Something like this var newValue = "$" + Model.Content.GetPropertyValue("FinancialValue").ToString() + ".00";

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Feb 28, 2019 @ 17:58
    Hendy Racher
    0

    Out of interest, would a 'Money' datatype be useful for this type of thing in the back office ?

Please Sign in or register to post replies

Write your reply to:

Draft