Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
UltraMaskedEdit does not show correct Thai year
posted

Hi,

I am building a custom date control by combination of UltraMaskedEdit and UltraMonthViewMulti. The current culture of the thread is "th-TH". The UltraMonthViewMulti shows correct Thai year 2560. However when I set the Value property UltraMaskedEdit, the display text of it is 2017.

I also tried to do this

            comboDateInput.FormatString = comboDateInput.CultureInfo.DateTimeFormat.ShortDatePattern;
            comboDateInput.InputMask = "{date}";

It only display correct Thai year if control is not in edit mode. When I click the UltraMaskedEdit to edit, it show 2017 again.

As stated in http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinMaskedEdit.v12.2~Infragistics.Win.UltraWinMaskedEdit.UltraMaskedEdit~InputMask.html

{date} token is a place holder for short date input. The date mask is derived using the underlying culture settings.

I am not sure if property InputMask is working properly.

Please verify this issue for me.

Parents
No Data
Reply
  • 960
    Offline posted

    Hello Kim,

    I've investigated your issue that UltraMaskedEdit does not display date in th-TH year in edit mode although the current thread's culture is "th-TH".

    I followed the steps you suggested and was unable to reproduce the behavior you're describing.
    I put an ultraMaskedEdit on a form, specified "th-TH" for current thread's culture and set "{date}" as ultraMaskedEdit's InputMask. And also, I set DateTime.Today as ultraMaskedEdit's Value. I ran the application and clicked on the ultraMskedEdit. Then, the ultraMaskedEdit expectedly displayed Thai year 2560.

    I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

    If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing. This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.

    Please let me know if I can provide any further assistance.


    Best Regards,
    Noriko I.
    Developer Support Engineer
    Infragistics, Inc.

    UltraMaskedEdit.zip
Children