My datagrid column and rows from json file. (json file generate from asp.net .ashx page)
It work perfectly but when I add formatter option to column, chrome thrown error 'col.formatter is not a function'
"columns":[[
{"field":"ck","title":"Case","align":"center","checkbox":true},
{"field":"barcode","title":"Barcode","align":"left"},
{"field":"sn","title":"Serial No","align":"left"},
{"field":"regNumber","title":"Register No","align":"left"},
{"field":"last_time","title":"Last Time","align":"left"},
{"field":"cmd","title":"CMD","align":"center","formatter":"formatCmd"}
]]
I changed to {...,"formatter":"formatCmd()"} and {...,"formatter":formatCmd} but had the same error result.
Could you please advice. Thank you