How to delete / add Event via postback?
Asked by Martin R.
19 years ago.
19 years ago.
Hi!
There are many examples that show how to fill the calendar with events initially. But how should I delete or add an event?
I prepared a ContextMenu for deleting like this:
What should I write into the NaviageUrl?
Do I have to rebuild the whole page (e.g. NaviageUrl="MyCalendar.aspx?delete_id={0}) ?
The next question would be, if I have a button which produces a callback, can I then just simply add an event to the DataSource?
Could you maybe provide a complete example for this scenario on the demo page?
Thanks for your Help
Martin
There are many examples that show how to fill the calendar with events initially. But how should I delete or add an event?
I prepared a ContextMenu for deleting like this:
<DayPilot:DayPilotMenu ID="DayPilotMenu1" runat="server">
<DayPilot:MenuItem NavigateUrl="javascript:alert('Deleting event (id {0})');" Target="" Text="Delete" Title="" />
</DayPilot:DayPilotMenu>
What should I write into the NaviageUrl?
Do I have to rebuild the whole page (e.g. NaviageUrl="MyCalendar.aspx?delete_id={0}) ?
The next question would be, if I have a button which produces a callback, can I then just simply add an event to the DataSource?
Could you maybe provide a complete example for this scenario on the demo page?
Thanks for your Help
Martin
DayPilot