RadMaskedTextInput is pretty terrible...

0 Answers 109 Views
MaskedInput (Numeric, DateTime, Text, Currency)
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Martin asked on 27 Oct 2022, 11:30 AM | edited on 27 Oct 2022, 11:32 AM

Binding and using this control feels quite terrible at its current state. 

My case: I want to display "HH:mm" .. as Maskk = "##:##" 

Value binding happily accepts string "10:00"

but while editing the value the propertychanged event can return "1000" which isn't compatible with the converter i've made. 

Text binding ONLY works in Mode=OneWayToSource in combination with Value binding Mode=OneWay 

Text="{Binding ToTime, Mode=OneWayToSource}"
Value="{Binding ToTime, Mode=OneWay}"

HOWEVER - when binding like this, the control doesnt clear the text when bound value changes to NULL 

eg: ToTime was "10:00" changes to NULL

The control keeps displaying "10:00"

Changing UpdateSourceTrigger from PropertyChanged to LostFocus makes the control completely faulty.. it simply stops displaying. 

ARGH

Why on earth is there two binding fields - where both are so faulty ? 

I wish there was only ONE : the Text field. 

This field should emit the masked value, whenever the UpdateSourceTrigger dictates. 

This Text field should accept "1000" as well as "10:00" but ALWAYS return "10:00" in the propertychanged event.

I'm considdering using a completely different control from another vendor instead of this mess :( 

Stenly
Telerik team
commented on 28 Oct 2022, 02:16 PM

Hello Martin, 

I understand your frustration and I am sorry to hear that you are having trouble with the RadMaskedInput control.

May I ask if it would it be possible to try setting the ValueMode property of the RadMaskedTextInput control? Further information and functionality of this property can be found at the following link:

WPF MaskedInput | Value Mode | Telerik UI for WPF

If this property does not achieve the desired result, would it be possible to share the scenario on your end in a sample project? This will allow me to test it and try to suggest a possible approach.

No answers yet. Maybe you can help?

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or