RadMasked textbox throwing error

2 posts, 0 answers
  1. Virag
    Virag avatar
    6 posts
    Member since:
    Jan 2011

    Posted 05 Oct 2012 Link to this post

    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" />

    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


  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 10 Oct 2012 Link to this post

    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.

Back to Top