Tab out of a cell in BatchEdit mode rounds numeric value to 2 decimals

Hi, when editing in batchedit mode, if I use tab or enter to move to next cell, the value is rounded up to 2 decimals. When clicking outside the cell to exit edit mode of that cell, the value stays intact.


For example, if the value is 0,2286 and I enter the cell by double clicking on it, and right away tab out of the cell, the value changes to 0,2300. But is I exit by clicking outside the cell, the value stays 0,2286. This is also true when modifying the value.


Not sure if this is a bug, but I suspect it is not the intended behaviour.


Can you help with this?


Thank you



"Epaisseur" is a float

<GridColumn Field=@nameof(BetonDalleVM.Epaisseur) HeaderText="Épaisseur m" TextAlign="TextAlign.Right" Format="N4"></GridColumn>
<GridEditSettings  AllowAdding="true" AllowDeleting="true" ShowDeleteConfirmDialog="true" AllowEditOnDblClick="true" AllowEditing="true" Mode="EditMode.Batch"/>




1 Reply

RS Renjith Singh Rajendran Syncfusion Team September 24, 2021 11:54 AM UTC

Hi Yannick, 

Greetings from Syncfusion support. 

Based on this scenario, we suggest you to use EditTemplate feature of Grid to overcome the reported behavior. 
 
Please refer and use the codes below, 

 
<GridColumn Field=@nameof(Order.Epaisseur) HeaderText="Épaisseur m" TextAlign="TextAlign.Right" Format="N4"> 
    <EditTemplate> 
        <SfNumericTextBox TValue="float" Format="N4" @bind-Value="(context as Order).Epaisseur"> 
        </SfNumericTextBox> 
    </EditTemplate> 
</GridColumn> 


Please get back to us if you need further assistance. 

Regards, 
Renjith R 


Loader.
Up arrow icon