AJAX Calendar/Scheduling Controls
The BeforeEventRenderEventArgs for the DayPilotMonth doesn't include a <b>ContextMenuClientName</b>.
Is there another way to have different context menus assigned to different events in the DayPilotMonth?
Thanks, that'll help but I'm coming to the conclusion that I'll also need greater flexibility in the waytheresulting 'EventMenuClick' is handled. For example, it's possible to handle other 'Event' Events ;) through Javascript orPostback. But once we've set the EventRightClickHandling to ContextMenu, it seems the resulting click can then only be handled server-side through the passing of a command to the Server-side event.
Unfortunately, one of the things I need to do when the user clicks on one of the context menu options, is to load a page as a 'modal dialog' which I can only seem to do through client-side javascript using openWindow... and can see no way of instagating this from the server-side click event.
At the same time as bringing the DayPilotMonth up-to-date as regards context menu functionality, is it also possible to look at providing both a client-side and server-side option for the handling of the resulting 'click'?
At present, I'm adding 'links' to the Bubble as a way of providing an alternative to right-clicking, so you just hover over the event on the month control, then select 'Properties' (for example), and a modal properties form is displayed - it's not exactly what I want, but at least the bubble rendering allows me to construct a menu inside the bubble which is different for each event too.
Yes, exactly that. Thanks.
Yes you can implement a custom ContextMenu for each event rendered.
Here what i did to so. First i use the ComponentArt modal control.
In the event of the DayPilotMonth "_BeforeEventRender" change the "InnerHTML" with something like mine.
e.InnerHTML = "<div style='float:left; padding-left:2px; cursor:hand;' onClick='EventModal();'>" & e.InnerHTML & "</div>"
Now i can use the Modal to do anything i want in server side event.
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java