Author Topic: Enter decimal values into grid cells (.4 instead of 0.4)  (Read 2928 times)

gwinterhalter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 15
    • View Profile
Enter decimal values into grid cells (.4 instead of 0.4)
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Enter decimal values into grid cells (.4 instead of 0.4)
« Reply #1 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
}

Digitalsoft

  • Pro OEM
  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: Enter decimal values into grid cells (.4 instead of 0.4)
« Reply #2 on: November 10, 2020, 05:50:36 pm »
How to fix this when pq grid integrated in angular

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Enter decimal values into grid cells (.4 instead of 0.4)
« Reply #3 on: November 10, 2020, 08:32:39 pm »
This is an older post.

.4 can be entered in new versions.