Skip to content

detachEvent

detaches a handler from an event (which was attached before by the attachEvent method)

function detachEvent(
// the event id (the result of the attachEvent operation)
id: string
): void
var myEvent = mygrid.attachEvent("onItemClick", function (){
...//event handler code
});
...
mygrid.detachEvent(myEvent);

Articles

API