:: Forum >>

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
Monday, July 18, 2005
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
Monday, July 25, 2005
thanks a lot, I'll try it out
Aurélien
Tuesday, July 26, 2005

This topic is archived.


Back to support forum

Forum search