Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 19, 2008 09:08
open dhtmlx forum
Tree: Clear an event

Hi,
I wonder if there is any way to clear an event? attachEvent(event, null) does not override the existing setting, it just adds a new one.
Thanks
Answer posted by Support on Feb 20, 2008 03:55
Each event can be detached in next way

var eventId = grid.attachEvent(....);   //attach event return event's ID
.... some other commands.....
grid.detachEvent(eventId);   // event can be detached by its ID