Hi everybody, i need some help…
im trying to use dhtmlgrid, im running the basic example in the library and everything was going right until i tried to use this event function:
mygrid.attachEvent(“onRowSelect”, doOnRowSelected);
firefox 3.5 tells me: " this.entBox is null Line 21 ", i read about this error in the forum, it tells about an incorrect id or inexist id, or hide… but i am not in that situation i think… here is my code:
var mygrid = new dhtmlXGridObject(‘miGrid’);
function doInitGrid()
{
mygrid = new dhtmlXGridObject(‘miGrid’);
mygrid.setImagePath("codebase/imgs/");
mygrid.setHeader("Model,Qty,Price");
mygrid.setInitWidths("*,150,150");
mygrid.setColAlign("left,right,right");
mygrid.setSkin("light");
mygrid.init();
mygrid.loadXML("grid.xml");
mygrid.setColSorting("str,int,int");
mygrid.setColTypes("ed,ed,price");
function doOnRowSelected(rowID){
alert("Selected row ID is "+rowID);
}
}
mygrid.attachEvent(“onBeforeRowDeleted”, doBeforeRowDeleted);
…
any idea of what iam doing wrong???, help me please, and thanks for your time…