This event calls user-defined handlers (if there are any) and passes the following parameter:
mylayout.attachEvent("onDblClick", function (itemId){ //any custom logic here });