I am having trouble with mygrid not rendering the table. I can add data into the database and see it in mySQL but the data won’t load in the grid.
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("dhtmlxSuite/dhtmlxGrid/codebase/imgs/");
mygrid.setHeader('<h5>Name</h5>,<h5>Addess</h5>,<h5>Town</h5>,<h5 >Phone</h5>,
<h5>Cell</h5>,<h5>Contact Pref</h5>,<h5>Email</h5>,<h5>Grant Site Usage</h5>,
<h5>User Name</h5>,<h5>Password</h5>,<h5>Smart Phone</h5>');
mygrid.setInitWidths("120,153,100,100,117,140,120,100,100,100");//set column width in px
mygrid.setColAlign("left,left,left,center,right,center,right,center,right,center,right");
mygrid.setColTypes("ed,ed,ed,ed,ed,coro,ed,ch,ro,ed,ed");
mygrid.setColSorting("db_connector,connector,connector,connector,
connector,connector,connector,connector");
mygrid.setSkin("dhx_web");
mygrid.attachHeader('#connector_text_filter,#connector_text_filter,#connector_text_filter,
<button id="delete_row">Delete Client</button>,<button id="add_user" >Add
Client</button>');
mygrid.attachEvent("onEditCell", doOnCellEdit);
mygrid.attachEvent("onRowSelect",doOnRowSelected);
mygrid.attachEvent("onCheck", function(rId,cInd,state){
if(state)
mygrid.setRowColor(rId,"red");
else
mygrid.setRowColor(rId,"#fff");
});
mygrid.init();
var combo = mygrid.getCombo(5);
combo.put("ph","ph");
combo.put("ph-e","ph-e");
combo.put("ph-e-txt","ph-e-txt");
var dp = new dataProcessor('db_connector.php');
dp.init(mygrid);