NumericTextBox in Dialog Window - locale problem

Hi, 

I've got a problem with numerictextbox in dialog window. 
In my app i've got dialog defined :
<ej-dialog target=".wrap"  id="@(Model ?? "ModalWind")" title="" show-on-init="false" is-responsive="true" enable-modal="true" enable-resize="true" min-width="600">
    <e-dialog-position x-value="0" y-value="0" />
    <e-content-template>
        <div ng-include="incloped.val"></div>
    </e-content-template>
    <e-animation>
        <e-hide duration="0" effect="Fade" />
    </e-animation>
</ej-dialog>

TextBox is displayed like this :
 <div class="form-group">
        <label class="label">Kwota WN</label>
        <input class="form-control" ej-NumericTextbox e-showSpinButton="false" e-decimalplaces="2" e-locale="pl-PL" ng-Model="PozEdit.KwotaWN" ng-model-options=""/>
    </div> 

And now : when the number is writen ex: 3,5 the number is changing to 3.5 (dot not comma), after loosing focus number is changing to 3,5 again.
Problem 2 : when 3,02 is writen after 0 (zero) and comma is deleted. 3, - is ok so far, 3,0 - is changing to 3. 
This problems occurs only in dialog window. When same numericbox is used directly in html everything is ok. 

3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team February 6, 2018 03:40 PM UTC

Hi Mariusz Wojewoda, 
 
We have checked your reported problem (Localization not applied for focusing the NumericTextbox) and provided code block at our end. We suspect that your have given code block for rendering NumericTextbox component. Please find the below modified code block. 
 
[CSHTML] 
 
//NumericTextbox Rendering code block for with in Dialog content template 
 
<ej-numeric-text-box id="numeric" width="100%" value="12.89" show-spin-button="false" locale="pl-PL" decimal-places="2" /> 
 
Sample Location:  
 
 
If the problem persists, please reproduce the issue in provided sample and revert.   
 
Regards, 
Ashokkumar B. 



MW Mariusz Wojewoda February 6, 2018 05:21 PM UTC

Hi,

Thx for reply.
But this way i can't use it with angular.

Best,
Mariusz


AB Ashokkumar Balasubramanian Syncfusion Team February 7, 2018 02:03 PM UTC

Hi Mariusz Wojewoda, 
 
We can’t understand your exact requirement clearly. So, can you please share the below details for identifying your exact requirement? 
 
  1. Which platform and framework using to rendering our components (both numeric and dialog)
  2. If you have a sample for this sample, please share it.
 
Please let us know, if you have any concern on this. 
 
Regards, 
Ashokkumar B. 
 


Loader.
Up arrow icon