This is a migrated thread and some comments may be shown as answers.
Empty decimal value in Chrome
7 Answers 33 Views
This is a migrated thread and some comments may be shown as answers.
Wilco
Top achievements
Rank 1
Wilco asked on 17 Mar 2017, 07:54 AM

I'm trying to get a decimal value into the Kendo numeric textbox from a viewmodel (MVC)
The value for the numeric textbox stays empty in Chrome but not in IE.

Besides that I notice a difference in de HTML output between IE and Chrome:

IE
<input name="Value" class="k-input" id="Value" role="spinbutton" aria-disabled="false" aria-readonly="false" aria-valuenow="125,1" style="display: none;" type="text" value="125,100" data-val-required="The Value field is required." data-val="true" data-role="numerictextbox" data-val-number="The field Value must be a number.">

CHROME
<input data-val="true" data-val-number="The field Value must be a number." data-val-required="The Value field is required." id="Value" name="Value" type="text" value="125,100" data-role="numerictextbox" role="spinbutton" style="display: none;" class="k-input" aria-valuenow="" aria-disabled="false" aria-readonly="false">
The initial value of the aria-valuenow is empty in Chrome where IE provides the actual value from the (view)model.

 

 

7 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 21 Mar 2017, 08:04 AM
Hi Wilco,

The behavior you describe seems rather strange. I tried to replicate it in the NumericTextBox examples, however, I was not able to.

Would you send us a runnable project or a dojo sample where the behavior is replicated. This will enable us to examine the issue locally and look for its cause.


Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Wilco
Top achievements
Rank 1
answered on 28 Mar 2017, 11:52 AM

Hi Victor,

Ok I've included an asp.net mvc testproject (NumericTextboxInChromeIssue.zip).

I you run it in both IE and Chrome you will see a difference in behaviour netween the two browser.

So far i can see the problem is only present in Chrome.

0
Viktor Tachev
Telerik team
answered on 30 Mar 2017, 09:09 AM
Hi Wilco,

There is nothing attached to your post. Please note that sending archives in the forums is not possible. 

With that said, please ensure that you have specified matching cultures on the client and server. If there are different cultures the decimal value sent from the server may not be parsed correctly on the client. As a result the numeric input would show nothing. 

The article below describes in detail how you can set matching cultures.


In case the issue persists please open a support ticket and attach the test project there. 


Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Wilco
Top achievements
Rank 1
answered on 11 Apr 2017, 12:53 PM

Hi Viktor,

 

I like to attach a zip file with the project, but it exceeds 20mb and I can't upload it.

Is there an other way to send the project zip to you?

0
Viktor Tachev
Telerik team
answered on 13 Apr 2017, 09:25 AM
Hi Wilco,

In order to attach a project you should open a support ticket. In order to reduce the size of the archive you can remove the Telerik assemblies.

Alternatively, if the project does not contain sensitive information you can upload it on a file sharing platform and send us the download link.


Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
IMF
Top achievements
Rank 1
answered on 04 Oct 2017, 08:29 AM

Hi Viktor I have the same problem, you can use this code to reproduce the issue in chrome, IE and Firefox work find

 

  @(Html.Kendo().NumericTextBox<double>()
            .Name("numeric")
            .Value(17.5)
            .Step(0.01)
            .Culture("es-ES")
            .Placeholder("Enter numeric value")
            .HtmlAttributes(new { style = "width: 100%", title = "numeric" })
                            )

 

 

0
Viktor Tachev
Telerik team
answered on 06 Oct 2017, 06:58 AM
Hi,

Please ensure that you have specified matching cultures on the client and server. Furthermore, update the components to the latest version. The current release is 2017.3.913.

In case the behavior persists after the modifications please send us a dojo sample or a runnable project where the behavior is replicated. 


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Wilco
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Wilco
Top achievements
Rank 1
IMF
Top achievements
Rank 1
Share this question
or