so i have a grid as such but am not getting any data loaded into it:
/*html, body { width: 100%; height: 100%; margin: 0px; padding: 0px; background-color: #ebebeb; overflow: hidden;*/ } data={ rows:[ { id:1, data: ["1", "Bama", "100", "10.00", "1,000"]}, { id:2, data: ["1", "Ga", "100", "10.00", "1,000"]}, { id:3, data: ["1", "Fl", "100", "10.00", "1,000"]}, ] }; gridDSP = new dhtmlXGridObject('tblDSP');
gridDSP.setImagePath("Images/dhtmlx/");
gridDSP.setSkin("dhx_skyblue");
gridDSP.setHeader("Team,Name,Qty,Price,Cost");
gridDSP.setInitWidths("50,50,50,50,50");
gridDSP.setColAlign("left,left,left,left,right");
gridDSP.setColTypes("ro,ro,ro,ro,ro");
gridDSP.setColSorting("str,str,str,str,str");
gridDSP.init();
//below only renders the table no content
gridDSP.parse(data,"json");
//gridDSP.load(data,"json");
</script>
Also, why isn’t there an auto column size, meaning why do I have to specify the table width and column widths? Why can’t the control simply build it as needed?