I need to disable individual cells in a treegrid. I am doing a transform response and can easily disable an entire row but need a way to disable single cells during the transform response.
tranformresponse calls this when creating a leaf row…
createDocRow: function(row, parentId) {
var docRow = { };
var iconData = IL.MimeTypes.getGridInfo(row.mimeType, “GRID”);
docRow.mimeIcon = iconData.iconUrl;
if (row.level != 1)
{
docRow.parentId = this.foldersAtLevels[row.level - 1].id;
}
docRow.index = row.index;
docRow.title = row.title;
docRow.version = row.version;
docRow.access = row.access;
//If I did this it works fine but I don’t want the whole row.
//docRow..enabled = false;
//want to do if row.printed = 0 then disable cell.
docRow.printed = row.printed;
docRow.isFolder = false;
return docRow;
}
In addition if I use getCellStyle in the treegrid it works but because it is not disabled for real the mouseover changes the style. Is there any way to disable a single cell either in transformresponse or in the treegrid.
Thanks,
MJB