3.2.0

Is it possible to edit ?

Hi everyone, I'd like to know whether it's possible to edit cells or not.
I'd like to use this grid as an Excel-like grid, doing calculations for example, but I don't know if it's possible ....

Thanks !
Aurélien
July 18,
Add this code:
if(event.ctrlKey){event.srcElement.innerHTML = prompt("Enter new text to for this element. \nHTML is allowed")};

To the Active.Control.Grid section of script in the call for obj.setAction
obj.setAction

Here is an example with the click action used.
//	set click action handler
    obj.setAction("click", function(src){window.status = src.getItemProperty("text");if(event.ctrlKey){event.srcElement.innerHTML = prompt("Enter new text to for this element. \nHTML is allowed")};});
Thomas Porritt
July 25,
thanks a lot, I'll try it out
Aurélien
July 26,

This topic is archived.

See also:


Back to support forum