edn column type does not display zero values (but ron does)

Hi all,

the code below does not display the zero values (using a number format or not) when the column types are all ‘edn’, but works OK with ‘ron’ (see screenshot).

Any clue someone ?
Cheers.


data = {rows:  [{id:12, data:[0, 1, -7]},
		{id:13, data:[0, 3, 2]},
		{id:14, data:[5, 0, 19]},
		{id:15, data:[-1, 1, 0]}]
        };
var mygrid = new dhtmlXGridObject(id);
mygrid.setImagePath("data/dhtmlTreeGrid/dhtmlxGrid/codebase/imgs/");
mygrid.enableAutoHeight(true);
mygrid.enableAutoWidth(true);
mygrid.setHeader(['c0','c1','c2']);
mygrid.setColTypes('edn,edn,edn');
mygrid.setNumberFormat("00.00", 2);
mygrid.setInitWidths("70,70,70");
mygrid.setSkin("light");
mygrid.init();
mygrid.parse(data, "json");

We can suggest you to put all your values in double quotes/quotes

data = {rows: [{id:12, data:["0","1","-7"]}, {id:13, data:["0","3","2"]}, {id:14, data:["5","0","19"]}, {id:15, data:["-1","1","0"]}] };

Hello sematik and thanks for your reply. I think json parsing should take care of this, so it is a bug IMHO. Should I add a ticket for this ?

Issue confirmed and will be fixed at the next version of dhtmlxGrid