Format input feld value according to tag FormatString property

I would like to format a numeric input field value according to Tag formatString property. I did not find the proper way to achieve that. Dose anyone have a tricks ?

I did it like that for my display value component, and would achieve same result with input field.

Have you tried binding the tag's format property to the numeric field's format property? If you utilize this then it should allow for an indirect bidirectional binding on the actual value.

tmp235

You can also do indirect binding on the format property:

Also, something to keep in mind with use of tag in expression bindings:

3 Likes

Thanks @ryan.white

Yes, it works with binding tag's format property to numeric field's format property. That's nice.

image

So, I did it with expression as a result it is more convinient for me :

Value:

image
image

Format :

@pturmel, What do you mean by :

No tag() function! Everywhere in a UI you think you need a tag() function, train yourself to split off a custom property with an indirect binding.

Do you mean the first methode is more suitable ?


Yes, use Tag Binding instead of Expression Binding with any tag() function.

1 Like