Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1375
Value Converters
posted

Should the numeric web mask work with ValueConverters?

this is the error i got

The new assigned value: 0 is not of specified type: Double

  • 760
    Suggested Answer
    posted

    Hi spicish22,

    The XamWebNumericEditor control requires the numeric type which is specified at ValueType property.

    By default it is - Double.  You can set double numbers in this way:   

    numericEditor.Value = 23d;

    numericEditor.Value = (Double) 23;

    The most complicated way is using a value converter. The control can work with converters.

    Regards,

     Doychin Dochev