RadMaskedNumericInput control can not enter negative values

7 posts, 0 answers
  1. Alan
    Alan avatar
    8 posts
    Member since:
    Aug 2010

    Posted 20 Oct 2011 Link to this post

    I am trying to use the RadMaskedNumericInput control and need to allow the user to enter a negative sign at the beginning of their input. I have not been able to figure out the correct Mask or FormatString for this.  I also have not been able to find any documentation of how to use the FormatString property. Any help or an small example would be greatly appreciated.

    Alan
  2. Eric
    Eric avatar
    17 posts
    Member since:
    Aug 2011

    Posted 21 Oct 2011 Link to this post

    I am running into a same scenario.
    I have found that if you type your Number FIRST, then hit the minus key "-" that it will show as a negative.

    It looks like the "-" toggles it between Negative and Positive 
    but NOT if the entire amount is Selected and NOT before your type your amount

    So you have to do it backwards.

    Telerik, Any setting that would allow for people to type a "-200" would be appreciated.
  3. DevCraft banner
  4. Alan
    Alan avatar
    8 posts
    Member since:
    Aug 2010

    Posted 21 Oct 2011 Link to this post

    Eric,

    I had this same issue when I was using the RadMaskedTextBox and was to fix the issue by setting the Mask = "f"  instead of "d" however "f" is not a valid option for the RadMaskedNumericInput.

    In your setup what are you using for your mask and formatstring for the RadMaskedNumericInput

    Alan
  5. Eric
    Eric avatar
    17 posts
    Member since:
    Aug 2011

    Posted 21 Oct 2011 Link to this post

    Here is my Xaml:
    <telerik:RadMaskedNumericInput  SelectionOnFocus="SelectAll"
    UpdateValueEvent="LostFocus"
    Value="{Binding Total, Mode=TwoWay, ValidatesOnExceptions=True }"
    Mask="#7.2" TextMode="PlainText"
    AutoFillNumberGroupSeparators="False"
    TabNavigation="Local" />

    Hope it Helps
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 24 Oct 2011 Link to this post

    Hi Eric and Alan,

    You can test your applications with the latest internal build (you can download it from your account pages at www.telerik.com). We recently fixed the issue from the following scenario: first minus key is pressed and then the value is typed. 
    As for the other "NOT" from the Eric's first post, Eric, could you please let us know the exact steps you perform in reproducing this because we are not able to see such behaviour in our demos or sample solutions. Thank you in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. Chris
    Chris avatar
    1 posts
    Member since:
    Dec 2011

    Posted 22 Dec 2011 Link to this post

     
  8. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Dec 2011 Link to this post

    Hi Chris,

     Could you please re-send your message since we see it empty?

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner