This is a migrated thread and some comments may be shown as answers.

Incell number editing visual glitch

2 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 10 May 2018, 02:24 PM

Hey everyone,

I came across an annoying visual glitch while implementing incell editing (default edit mode) with non-decimal numbers. When we enter the edit field of an said number (let's say value=14), for a brief moment the editor displays 14.00. This is easily reproducible in a clean dojo environment. I tried a couple of things to get rid of this but didn't succeed.

Here is a dojo where each column represents what I've tried : 

Standard: minimalist config that I used in the beginning
Model Format: tried to force the format at the data source level
Template: Tried to set a custom template with kendo.toString(value, "n0")
Custom Editor: using a simple custom editor ( vale is lost here)
Custom editor 2: using a custom editor and initializing the value (breaks model change)

https://dojo.telerik.com/oYAvOlOZ

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 14 May 2018, 08:10 AM
Hi Gabriel,

In order to implement the behavior I can suggest couple of options. The first approach would be configuring columns.format to show only integer numbers.

Another option is to use custom editor as illustrated in the Custom Editor example and define the format for the NumericTextBox editor.

For your convenience I applied both approaches in the dojo sample. 


Give it a try and let me know how it works for you.

Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Gabriel
Top achievements
Rank 1
answered on 15 May 2018, 01:33 PM

Hey Viktor,

thanks alot for the help it seems to work!

 

 

Gabriel

Tags
Grid
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Gabriel
Top achievements
Rank 1
Share this question
or