Hi,
First of all congratulations for releasing Telerik Extensions for ASP.NET MVC 2010 Q3, it has some nice and valuable fixes and features.
But I'm experiencing problems using NumericTextBox with a decimal! In my model I want to store the value as an int (in centimeters for example), but display it with a decimal point after the second digit (displayed in meters). That is why I am dividing by 100. I have a custom filter for that action, so that it stores the values in int removing any commas.
Now the problem is that the decimal point is lost. JavaScript adds a decimal point and two zeroes after the number. But if I disable JavaScript only whole(integer) numbers are displayed.
Also another behavior I'm noticing is that when I click on the box, those two zeroes and the comma are lost. When I move to the next textbox, two more zeroes plus a comma are appended at the end of what I have typed, no mather if I have used a comma or not. So just by moving in and out of the box the number is growing and growing.
<% Html.Telerik().NumericTextBox<decimal>() .Name("project.Detail.Length") .Value((decimal)((decimal)Model.project.Detail.Length / (decimal)100)) .NumberGroupSize(0) .DecimalSeparator(",") .DecimalDigits(2) .Spinners(true) .Render(); %>Now I suppose it is me who is doing something terribly wrong, but I can't find out what. In the master page I have:
<%= Html.Telerik().ScriptRegistrar() %>And an inline script after it. Adding .Globalization(true) just makes things worse. Firebug says there is a bug in "telerik.textbox.min.js" even without globalization. I can't say where exactly since the script is one line. IE 8 does not complain and the pages work slow in Opera 10.61. I have installed Telerik Extensions from the binary of 2010 Q3 and I'm using Visual Web Developer Express 2010.
Please any help will be highly appreciated!
Thank You,
Stanislav