Hi,
I have the following colModel:
{“name”:”Id”,”index”:”1″,”formatter”:”text”},
{“name”:”Name”,”index”:”2″,”formatter”:”text”},
{“name”:”BillingCity”,”index”:”3″,”formatter”:”text”},
{“name”:”BillingPostalCode”,”index”:”4″,”formatter”:”text”},
{“name”:”BillingState”,”index”:”5″,”formatter”:”text”},
{“name”:”Type”,”index”:”6″,”formatter”:”text”},
{“name”:”Industry”,”index”:”7″,”formatter”:”text”}
]
Â
I am trying to display the undefined values into blank text and I already have the following function in place:
|
1 2 3 4 5 6 7 8 |
function text (cellvalue, options, rowObject) {<br /> if (jQuery.type(cellvalue) === "undefined") {<br /> alert("Hello!");<br /> return "";<br /> } else {<br /> alert("World!");<br /> }<br /> } |
For some reason, the undefined values are still displaying as “undefined” on the grid. I was wondering what I might have done wrong for it not to work?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top