I’m attempting to load json data from a file but it’s not loading into the grid.
mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("./codebase/imgs/"); mygrid.enableSmartRendering(true); mygrid.setHeader("Id,CatId,ItemId"); mygrid.setInitWidths("100,100,*"); mygrid.setColAlign("left,left,left"); mygrid.setColTypes("ed,ed,ed"); mygrid.setColSorting("str,str,str"); mygrid.enableTooltips("true"); mygrid.init(); mygrid.setSkin("dhx_skyblue");
mygrid.load("data/order.json", "json");
</script>
order.json file contents:
{“rows”:[{“id”:1, “data”:[“id”:1,“catId”:105,“itemId”:17]}]}
the grid loads but no data is loaded into it; why?