This is a migrated thread and some comments may be shown as answers.

RadMasked textbox throwing error

1 Answer 81 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Virag
Top achievements
Rank 1
Virag asked on 05 Oct 2012, 12:56 PM
Hi there

I am using following code in Visual Studio 2012 for Radmasked Textbox

<data:DataField Label="Handling Fee" Margin="3" LabelPosition="Top">
                                    <telerik:RadMaskedCurrencyInput  Value="{Binding Delivery_Shippable.handling_fee, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" Mask="#9.2" />
                                </data:DataField>

But when I am trying to enter any numericc value it is throwing following exception
 Input string is not in correct format
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.set_Value(Object value)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.SetMaskedText(String str)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskEditingHandler.Insert(String insertion)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.Insert(Char insertion)
   at Telerik.Windows.Controls.MaskedTextBox.NumericMaskHandler.Insert(String insertion)
   at Telerik.Windows.Controls.RadMaskedTextBox.TextBox_TextChanged()
   at Telerik.Windows.Controls.MaskedTextBox.ExtendedTextBox.ExtendedTextBox_TextChanged(Object sender, TextChangedEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

I am using latest version of telerik

Please let me know where I am missing the thing

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 10 Oct 2012, 11:26 AM
Hi Virag,

Can you elaborate a bit more on the scenario in which the issue is reproduced? Specifically, can you tell us the type of the Delivery_Shippable.handling_fee property?

Also, it would greatly help us if you can try to isolate the issue in a sample solution and send it over.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Virag
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or