Hello,
I'm using a RadMaskedTextInput and I'm wondering if it's possible to change the foreground color of just the placeholders?
What I'm trying to accomplish is for every X in below image to appear in a brighter color than the text typed in by the user.
What my RadMaskedTextInput looks like currently:
What I want the foreground to look like:
Hi,
Would it be possible to have an editable RadMasked Part to mimic the RadWatermarkTextBox with floating Label?
Sometimes when I paste a test intro en empty RadMaskedTextInput, the application crushes and the following error occurs:
FATAL Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
at Telerik.Windows.Controls.RadMaskedTextInput.HandlePasteNoMask(Object value, Object& returnString)
at Telerik.Windows.Controls.RadMaskedTextInput.HandlePasteOverride(Object value, Object& returnString)
at Telerik.Windows.Controls.RadMaskedInputBase.HandlePaste()
at Telerik.Windows.Controls.RadMaskedInputBase.OnApplicationPaste(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Hello,
I have a RadMaskedTextInput that I'm using for a phone number.
If I clear the form, and set the txtDriverNumber (that's the name of the field) using txtDriverNumber.Text = "" (and I also tried string.Empty) it looks like it clears the value correctly.
However, when the textbox gets focus again, it puts back in the last entered data. I don't want it to do that, is there something I can do to make sure it doesn't remember previous values?
Hi Telerik Team,
We are using RadMaskedCurrencyInput inside RadGridView as RowDetailTemplate. But the performance is very poor, as it takes nearly 100 milliseconds for each number typing.
Also, it takes 2 to 4 seconds when we perform Select All and typing the number.
This happens only if the control is placed inside the RadGridView.
We have the same control outside the RadGridView for testing purpose which performs good.
Please let me know if any optimization can be done with this.
Below are the code we are using.
<tk:RadMaskedCurrencyInput
maskedInput:MaskedInputExtensions.MaxTextLength="5"
maskedInput:MaskedInputExtensions.Minimum="0"
FontSize="12"
FontWeight="DemiBold"
IsCurrencySymbolVisible="False"
Mask=""
SpinMode="None"
TextMode="PlainText" />
I'm not able to attach the video file here.
Thank You.
I have this property
private double? _netFreqValue;
public double? NetFreqValue
{
get => _netFreqValue;
set
{
if(_netFreqValue == value) return;
_netFreqValue = value;
this.OnPropertyChanged();
}
}
and im trying to set the EmptyContent property to nothing(empty string) when the value is null
this works fine
<RadMaskedNumericInput
Mask = "#4.3"
AllowInvalidValues = "False"
EmptyContent = ""
UpdateValueEvent = "LostFocus"
Value = "{Binding NetFreqValue, Mode=TwoWay, UpdateSourceTrigger = PropertyChanged}" />
but this does not
<RadMaskedNumericInput
Mask = "#4.3"
AllowInvalidValues = "False"
EmptyContent = ""
UpdateValueEvent = "LostFocus">
<RadMaskedNumericInput.Value>
<Binding Path=""NetFreqValue"
UpdateSourceTrigger="PropertyChanged"
Mode="TwoWay">
<Binding.ValidationRules>
//some validations
</Binding.ValidationRules>
</Binding>
</RadMaskedNumericInput.Value>
</RadMaskedNumericInput>
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 :(
Hi,
I an using RadMaskedCurrencyInput control for taking number from input its work fine for using English Keyboard. The problem is when I change the system language to Japanese and enter number using NumPad, instead of new value replace with entered one, new value is concatenate with previous value. Like if 415 is already entered, I switch the Keyboard to Japanese and select the previous entered value and type new number 325, Predication window is open and choose the number 325. After's electing value, our RadMaskedCurrencyInput shows 325415 value instead of 325.
Please help me to resolve this.
Thanks in Advance.
Hi,
I an using RadMaskedCurrencyInput control for taking number from input its work fine for using English Keyboard. The problem is when I change the system language to Japanese and enter number using NumPad , instead of new value replace with entered one, new value is concatenate with previous value. Like if 415 is already entered, I switch the Keyboard to Japanese and select the previous entered value and type new number 325, Predication window is open and choose the number 325. After's electing value, our RadMaskedCurrencyInput shows 325415 value instead of 325.
Please help me to resolve this.
Thanks in Advance.
I have a number of xaml files that are are using telerik masked inputs, specifically
and will likely be using more. These are being used to make sure the user is entering the correct input. Once the user enters the input the input data needs to run through a multiconverter. I have not been able to find a solution to bind the input data to a muliconverter. Is this possible?
I have been able to make this work in the RadGrid columns using the published work around which does not work in this context and am looking for either a way to make this work or if this is even possible.
For example, below is one of the date time inputs. How can the bound data, singleSpeedDataInt, be run through a multi binding converter?
<telerik:RadMaskedDateTimeInput