Hi there,
Thanks for the neat tool, just what I wanted! I am using dhtmlxGrid v.3.0 Standard edition build 110707.
I have my datagrid loading and displaying fine, all looks good. But then I wanted to build a little javascript function to refresh the datagrid from an existing array. Here is my code (mygrid is already initialized properly with 3 columns etc):
function gridreload() {
mygrid.clearAll(true);
mygrid.setHeader("Anew,Bnew,Cnew");
mygrid.setInitWidths("90,90,90");
mygrid.setColAlign("left,center,center");
mygrid.setColSorting("str,str,int");
mygrid.parse(myjsarray,"jsarray");
}
Simple function, right? Everything works, data cleared and loaded, except that the header line is blank, i.e. its background is coloured but there is no column header cells or text. I’ve even tried moving the setHeader command after the parse command, but no joy.
It seems like it should work, to my simple mind at least. Any ideas anyone?
Cheers,
4Shades