After removing and adding columns broken correct indexing columns.
Because of this error, it is impossible to properly load data into a table.
[code]var grid = appLayout.cells(“d”).attachGrid();
grid.setImagePath(config.imagePath);
grid.setEditable(true);
grid.enableMultiselect(false);
grid.setHeader([“Active”, “Name”, “Visible”]);
grid.setColTypes(“ch,ed,ch”);
grid.setInitWidths(“32,*,32”);
grid.setColAlign(“center,left,center”);
grid.init();
grid.parse(“{"rows":[{"id":"1","data":[false,"Test",true]}],"total_count":1}”, “json”);
grid.deleteColumn(0);
grid.insertColumn(0, ‘Active’, ‘ch’, 32, ‘na’, ‘center’);
grid.clearAll();[/code]
// The correct code leads to wrong results:
grid.parse("{\"rows\":[{\"id\":\"1\",\"data\":[false,\"Test\",true]}],\"total_count\":1}", "json");
// The wrong code leads to correct results:
grid.parse("{\"rows\":[{\"id\":\"1\",\"data\":[\"Test\",true,false]}],\"total_count\":1}", "json"); // workaround