Blank when NaN in jqGrid cells

cell, jqgrid, nan

Solution

This is REALLY old but the jqGrid documentation didn't have an easy answer and this question pulls up first in Google results when I was looking for the same answer.

I was able to display a blank cell instead of a 0 when using the predefined formatter option for an integer using this code:

{ name: 'Quantity', formatter: 'integer', formatoptions: { defaultValue: ''} }

The `defaultValue` is just set to blank.

Problem

How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?

Original source

Related problems