This is a migrated thread and some comments may be shown as answers.

slider<double> globalization problem

3 Answers 54 Views
Slider
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Xazo
Top achievements
Rank 1
Xazo asked on 12 Apr 2011, 07:55 AM
Hello, I have a problem retrieving values from a Html.Telerik().Slider<double>. The slider returns the value seperating the decimal part with a '.' (dot) while the server parses doubles using the ',' (comma).

In order to solve the globalization problem in my application, I have created a custom double model binder (you can see the implementation on stackoverflow) but the problem is that the Slider is not consistent with the user's language preferences (the rest of the gui uses microsoft's javascript globalization). The value is always in Invariant Culture. As a result, I'll have to make custom model binders for every field that is bound to Slider in order to always parse these values using InvariantCulture. 

Is there a way to specify the sliders decimal seperator?

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Victor
Top achievements
Rank 1
answered on 06 Jul 2011, 11:52 AM
Hi!

Just wanted to say we have encountered the exact same problem and am looking for a solution. Any news?

/Victor
0
Hristo Germanov
Telerik team
answered on 11 Jul 2011, 01:53 PM
Hi Victor,

Thank you for the feedback.

I am glad to inform you that this issue is fixed and it will be included with the official release of the Telerik Components for ASP.NET MVC.

All the best,
Hristo Germanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Marco Teodoro
Top achievements
Rank 1
answered on 25 May 2012, 03:55 PM
how can i set a decimal separator to rangeslider?

I have tried to set ui culture but it ignores my culture decimal separator. 
Tags
Slider
Asked by
Xazo
Top achievements
Rank 1
Answers by
Victor
Top achievements
Rank 1
Hristo Germanov
Telerik team
Marco Teodoro
Top achievements
Rank 1
Share this question
or