RadzenNumeric custom Format

Hi everyone,
I'm actually have a problem, where we use RadzenNumeric and the Format is specified like this:

Format=@($"0.00 {currency} / {pieceUnit}")

The output is correct like 24.20 $/pc, but the Problem is when you type into the box a new value but only replacing the numbers, then the value will be set to 0, as in the 'RemoveNonNumericCharacters' method the new string is returning also Punctuations, so in result after this call it comes 24.20/ as value, what can not be converted to decimal, so it takes 0

If you replace whole input including units, then the value is set correctly.

Additionaly I discovered, when in this Format the unit is empty:

Format=@($"0 {unit})

then if you type the value 30 it converts it to 3 trimming all zeros

I don't know if it is a bug or I just misuse the Format to do something like that :slight_smile:

BR

You can specify your own ConvertValue function:

Thanks for your answer - yes a custom ConvertValue funciton should do this