Is it possible to disable the objects contained in a cell of an accordion ?
Actually, I have for example 2 grids inside a cell of accordion, but I would like to make them as “read-only” or disabled in one call.
the default cell type in grid is ed (editable cell). You can define the necessary column as read-only (ro type):
the type can be set also for cell: …
And more over editing can be disabled by onEditCell event handler (it should return false in this case):
return cellIndex != index_of_disabled_column;
Thanks for your quick answer.
Sorry, my explanation is surely too bad : what I mean is “how can I disable all objects in a cell of an accortion, whatever the object could be”. In my example, I have 2 grids in a cell of an accortion, but It could be edit boxes or things like that and I would prefer not to “touch” to these objects but to do something at the accordion level, in order to make all content in accordion’s cell disabled.
The possible solution is to place the transparent div element over the accordion cell.
var el = document.createElement(“DIV”);
el.style.position = “absolute”;
el.style.height = “100%”;
el.style.width = “100%”;
You can change display property of the element to enable/disable cell content.
I’ll try this nice idea …