Hello, I've tried with jqgrid 4.1 and it works fine.
Cellvalue in formatter function is “” and therefore the if condition is true..
Did you try debugging to find the value of “cellvalue”..? try a alert(“*”+Cellvalue+”*”) inside
the formatter to see what you get.. (*s added to distinguish spaces in the alerted message if Cellvalue is a space)