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

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