Hello,
Im trying to pass a simple format and deFormat as named functions and they dont seem to work.
function pqFormatPercent(val) {
return (val==null || val==="")? "": (pq.formatNumber(val * 100, "#,###.0") + "%");
}
function pqDeFormatPercent(val) {
return (pq.deFormatNumber(val.split('%')[0], '#,###.00') / 100);
}
This is because my colModel comes from a JSON
"postpaid_sales": {
"align": "right",
"title": "Postpaid Sales",
"format": "pqFormatPercent",
"deFormat": "pqDeFormatPercent",
"dataIndx": "postpaid_sales",
"dataType": "float"
},