Author Topic: format zero as empty string  (Read 89 times)

scoular

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 5
    • View Profile
format zero as empty string
« on: December 11, 2024, 03:36:14 pm »
I have a colModel with datatype integer.  I just want to display zero as empty string instead of zero.  format: "#"  doesn't work and I have tried other things including using a function for format. 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6323
    • View Profile
Re: format zero as empty string
« Reply #1 on: December 11, 2024, 03:48:45 pm »
In new version 10.x, you may use use the excel format #;#; to display 0 as empty string where first part # is for +ve numbers, 2nd part # is for -ve numbers, 3rd part is for 0.

You may try it out in this example: https://paramquery.com/pro/demos/format_number, you can enter the format from the toolbar button.

In colModel, it would be

Code: [Select]
format: "#;#;"
« Last Edit: December 11, 2024, 03:50:37 pm by paramvir »