Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Culture not applied

Last post 07-30-2008 9:58 by andrevoltolini. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-23-2008 9:11

    Culture not applied

    Hi I have creating WebCurrencyEdit and WebDateTimeEdit dynamically, it´s used in a UltraWebGrid. I allow the user to edit values but my culture isn't respected.

    Example:

                WebCurrencyEdit currencyEditControl = new WebCurrencyEdit();
                currencyEditControl.ID = "MyControlID";
                currencyEditControl.Culture = Thread.CurrentThread.CurrentCulture;
                currencyEditControl.DataMode = NumericDataMode.Text;
                currencyEditControl.NumberFormat = MyNumericFormatInfo.NumericFormatInfo;
                currencyEditControl.MinDecimalPlaces = MinDecimalPlaces.Two;
                column.EditorControlID = "MyControlID";

    Tanks

    Version: 8.2.20082.1000

    • Post Points: 5
  • 07-03-2008 13:33 In reply to

    Re: Culture not applied

    Any help? Decimal separator not respected when editor in UltraWebGrid.

            NumberFormatInfo nfi = new NumberFormatInfo();
            nfi.NumberDecimalDigits = 2;
            nfi.NumberDecimalSeparator = ",";
            nfi.NumberNegativePattern = 1;
            nfi.NumberGroupSeparator = ".";
            nfi.CurrencyDecimalDigits = 2;
            nfi.CurrencyDecimalSeparator = ",";
            nfi.CurrencyNegativePattern = 2;
            nfi.CurrencySymbol = "R$ ";
            nfi.CurrencyGroupSeparator = "."; 


            WebCurrencyEdit currencyEditControl = new WebCurrencyEdit();
            currencyEditControl.ID = "MyEditor"
            currencyEditControl.Culture = CultureInfo.CreateSpecificCulture("pt-BR");
            currencyEditControl.NumberFormat = nfi;

     

    • Post Points: 20
  • 07-30-2008 8:58 In reply to

    Re: Culture not applied

    I have the same problem.

    Did you find a solution?

    Thank you 

    Regards, Herbert 

    • Post Points: 20
  • 07-30-2008 9:58 In reply to

    Re: Culture not applied

    Try the hot fix 8.2.20082.2011.

    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems