We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

numericTextBox allows to paste invalid values in strict mode

Thread ID:





129296 Mar 10,2017 07:47 AM UTC Mar 13,2017 12:32 PM UTC Angular 1
Tags: ejGrid
Rykunov Alex
Asked On March 10, 2017 07:47 AM UTC


I have a numericTextBox as a field editor in my grid. 

<ej-grid id="Grid" 
        [editSettings]="{'allowEditing':'false', 'editMode':'batch', 'showConfirmDialog':false}"
                <e-column field="id" [visible]="false" [isPrimaryKey]="true"></e-column>
                <e-column field="duration" editType="numericedit" [editParams]="{'decimalPlaces': 2, 'minValue': 0}" headerTextAlign="center" headerText="Делал часов"></e-column>

The textbox works perfectly when user tries to manyally input the wrong values — values outside of min and max ranges, strings and other. However, if user copies the invalid value, and then pastes it into the field, then the numerictextbox does not prevent it. If for strings it simply returns NaN, it does not react for value outside of min-max ranges. Therefore, I have to validate the field manually, and that is not perfect, if there's easier ways.

Also concerning, that even though the field value is supposed to be numerical (int or float or other), the empty numeric text box returns empty string "" as a value. Again, it makes it neccessary to manually validate all the inputs.

I assume this is the problem of all textboxes, and not just numerical one. I have noticed similar behaviour on ej.datePicker.

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On March 13, 2017 12:32 PM UTC

Hi Alex,   
Query 1: NumericTextBox allows to paste invalid values in strict mode   
We have analyzed your Query. We can able to reproduce the reported issue in our end. And the fix for this issue will be available in our upcoming Essential studio volume 1 service pack 2 release which is expected to rolled out in the end of this month.    
Please be patient until then.   
Query 2:  The empty numeric text box returns empty string "" as a value   
We have analyzed your query. We would like to inform you that, this is a general behavior of the normal Textbox and it is not an issue.   
Seeni Sakthi Kumar S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon