I would like to add context menu to my scheduler dynamically - based on one of the custom attributes to show different menu items for each appointment. Is it possible? I couldn't find any examples for this scenario.
Thanks,
Julia
1 Answer, 1 is accepted
0
Peter
Telerik team
answered on 11 Aug 2009, 12:55 PM
Hi Julia,
I suggest you hide specific menu items on the client based on the value of the apponitment's custom attribute. For example, using the Context Menu demo, suppose you have a Description custom attribute and you need to hide the first first item in the menu from the "categorize" list - "Development". You can use the following code:
function appointmentContextMenu(sender, eventArgs)
{
var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>");