Greetings!
I am baffled. I have a simple grid loaded with data, and I can get the data from any cell except the first one in the row (cix=0)
cell 0 returns what looks like the css style property to me an example is:
I have lots of other grids that work just fine. I can not find the difference. Maybe someone has an idea of where to look?
Here is my code for the grid: (the alert in the doOnMemRowSelected function returns the correct data on all but the first column which returns that shown above.)
function buildLibrary(){
var memberusername = document.getElementById(“usernameentry”).value;
if (memberusername.length < 1){
showDialog(“Whoops!”,“No member username.”,‘warning’);
return;
}
wMemLib = dhxWins.createWindow(“wMemLib”,505,200,540,600);
wMemLib.setText(memberusername+" Member Library");
memAgrid = wMemLib.attachGrid() ;
var flds1 = "Albums/Tracks,Tk,Artist,UPC,Status,Media,Art,P/S"
memAgrid.setHeader(flds1);
memAgrid.setInitWidths("160,25,130,100,38,30,20,20");
memAgrid.setColAlign("220,25,165,100,38,40,20,20");
memAgrid.setColTypes("tree,ro,ro,ro,ro,ro,ro,ro");
memAgrid.setColSorting("str,int,str,str,str,str,str,str");
memAgrid.setColumnColor("white,#F0B5FF,white,white,white,#E6E4DE,#E6E4DE,#E6E4DE");
memAgrid.setImagePath(imagepath);
memAgrid.attachEvent("onRowSelect",doOnMemRowSelected);
memAgrid.init();
memAgrid.enableEditEvents(true,false,true);
memAgrid.enableDistributedParsing(true);
var mtype = document.getElementById("mtype").value;
// for dynamic loading.....
var atOnce = 50;
memAgrid.xmlFileUrl = oereq+'?ACTION_CODE=LIBRARY&mtype='+mtype+'&USERNAME='+memberusername;
memAgrid.loadXML(oereq+'?ACTION_CODE=LIBRARY&mtype='+mtype+'&USERNAME='+memberusername+"&startPos=0&count="+atOnce);
}
function doOnMemRowSelected(rowid,cix){
alert("ln1760 "+memAgrid.cells(rowid,cix).getValue())
}
Thanks,
Have fun!
Paxton