search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

To Copy Event Data from the RightClick on the event

Asked by Anonymous
13 years ago.
To copy the data of the event from the click of a button (This button is appeared on the right click on the event
Comment posted by Dan Letecky
13 years ago.
Do you mean accessing the event object from within the event box ?

The structure of the event div is as follows:

<div> <-- this is the main event div
<div>
e.InnerHTML
</div>
</div>

If you render your code in BeforeEventRender event you can reach the event object using the following code:

e.InnerHTML += "<input type='button'" + 
"onclick='dp.eventMenuClickCallBack(parentNode.parentNode.event, 'Delete');' +
"value='Delete' />";

This code adds a button that calls a custom callback action (it executes EventMenuClick event on the server-side, passing "Delete" as e.Command value).
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.