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
190
Culture problem
posted

Hi, i using WebCurrencyEdit and WebDateTimeEdit in UltraWebGrid. I allow the user to edit values but my culture isn't respected.

Code
WebCurrencyEdit currencyEditControl = new WebCurrencyEdit();
currencyEditControl.ID = "MyControlID";
currencyEditControl.Culture = Thread.CurrentThread.CurrentCulture; Or currencyEditControl.Culture = CultureInfo.CreateSpecificCulture("pt-BR");
currencyEditControl.MinDecimalPlaces = MinDecimalPlaces.Two;
column.EditorControlID = "MyControlID";

Web.config
<globalization requestEncoding="utf-8" responseEncoding="utf-8" uiCulture="pt-BR" culture="pt-BR" />

Version
8.1.20081.1000