Grid manipulation fails

Hi,

Consider these two pages:

http:// www. misha.fi/ubetter/Predictions.htm
http:// www. misha.fi/ubetter/Predictions1.htm

They are identical, except that the latter one uses the function call

gridA.setCellExcellType(“row2”,4,“ro”);

on row 111. This messes up the layout, and doesn’t work as intended.

Similarily, the function call

gridA.setSerializationLevel(true, true);

on line 305 ends the script.

I’m stumped, what should I do to fix it?

Thanks, Mike

both methods are available in pro version of the grid only:
docs.dhtmlx.com/api__link__dhtml … level.html
docs.dhtmlx.com/api__link__dhtml … ltype.html

OK, now I see things much more clearly. So, is it at all possible to limit the cell editing on any other level than column level in the GPL-version? Or is a whole column either editable, or non-editable?

wonders Mike

You may use the onEditCell event to control the edit operations in your grid:
docs.dhtmlx.com/doku.php?id=dhtm … oneditcell
for example:

grid.attachEvent("onEditCell", function(stage,rId,cInd,nValue,oValue){ if(stage==0 && rId=="row2" && cInd==4) return false // block the edit operation else return true // allow edit operation });