ParamQuery grid support forum

General Category => Bug Report => Topic started by: gwinterhalter on January 06, 2019, 12:12:54 am

Title: Enter decimal values into grid cells (.4 instead of 0.4)
Post by: gwinterhalter on January 06, 2019, 12:12:54 am
HI Support,

When entering decimal values to editable cell .4 is not allowed (it ignores "." and enters "4" instead). We must enter 0.4 to get desired result.

Can you provide example code to allow entering .4 and not ignore "."

Thanks

Greg
Title: Re: Enter decimal values into grid cells (.4 instead of 0.4)
Post by: paramvir on January 07, 2019, 04:18:19 pm
Please add this before initialization of grid.

Code: [Select]
$.paramquery.cKeyNav.prototype.isEditKey = function(t) {
      return t >= 32 && 127 >= t || 189 == t || 190 == t
}
Title: Re: Enter decimal values into grid cells (.4 instead of 0.4)
Post by: Digitalsoft on November 10, 2020, 05:50:36 pm
How to fix this when pq grid integrated in angular
Title: Re: Enter decimal values into grid cells (.4 instead of 0.4)
Post by: paramvir on November 10, 2020, 08:32:39 pm
This is an older post.

.4 can be entered in new versions.