Author Topic: Error in filteredtextbox  (Read 10170 times)

jadeniz

  • Newbie
  • *
  • Posts: 7
Error in filteredtextbox
« on: October 15, 2012, 07:54:12 pm »
Hi all.

There's a small error on Samba.Presentation.Common.FilteredTextBox.cs

On   OnPreviewTextInput you define ds (decimal separator) as

var ds = CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator[0];

It might be

var ds = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator[0];

because of possible different values.

An example, Peru.
CurrentUICulture=es
CurrentCulture=es-PE
decimal separator es => , (comma)
decimal separator es-PE => . (dot)
so if you use CurrentUICulture is not possible at all input decimal values in number fields.