Strange behaviors of MaskedEditExtender with CH- culture

Last post 07-04-2009 3:34 AM by integrasol. 1 replies.

Sort Posts:

  • Strange behaviors of MaskedEditExtender with CH- culture

    07-03-2009, 4:55 AM
    • Member
      point Member
    • jaylemur
    • Member since 07-03-2009, 8:33 AM
    • Posts 1

     Hi !

    I've configured a textbox with the MaskedEditExtender.

    MaskType="Number"

    Mask="9'999'999.99"

    InputDirection="RightToLeft"

    CultureName="fr-CH"

    With the culturename xx-CH, this control behaves wrongly. The "template" is correctly displayed  : Sfr._'___'___.__

    But when you enter numbers, they overwrite themself and the number displayed is completly wrong when the control leaves the focus.

    With other cultures, this control works well.

    Any hint what could be wrong ?

    And is it possible to configure the mask to allow only "0" or "5" for the rightmost digit ?

    Thanks in advance.

    Cheers

  • Re: Strange behaviors of MaskedEditExtender with CH- culture

    07-04-2009, 3:34 AM
    Answer
    • Star
      8,822 point Star
    • integrasol
    • Member since 06-05-2009, 11:18 AM
    • Denmark & Spain
    • Posts 1,633

    It looks like a bug to me; I tried out your example, and yes it works with the default culture, but it also works if you remove InputDirection or DisplayMoney. I'm not sure what to say, but to log a bug entry, http://ajaxcontroltoolkit.codeplex.com/WorkItem/List.aspx

    I did a quick search of existing issues, but didn't find this one described. You might still want to check the list Problematicc sentence structure.

     You can use this mask to achieve a valid value of 0 or 5 for the right most digit, 9'999'999.9C, if you set the Filtered property to "05"

    Thanks

    Carsten

    Please click Mark as Answer if this post is of help to you. :-)



    My Blog
Page 1 of 1 (2 items)