This is a migrated thread and some comments may be shown as answers.

[Solved] Create seperate context menu for each appointment for single day

1 Answer 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Samir Patel
Top achievements
Rank 1
Samir Patel asked on 22 Sep 2009, 11:45 AM
I have a three appointment for a single day , and i want to create the seperate context menu for each this three appointment , will it be possible?

How can i create the Seperate context menu for individual appointment..?

Regards
Samir

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 24 Sep 2009, 01:46 PM
Hi Samir,

Please, refer to the RadScheduler Context Menu demo. In there you can add a custom condition to the
appointmentContextMenu handler and assign a corresponding menu. For example:
 function appointmentContextMenu(sender, eventArgs)  
        {               
           selectedAppointment = eventArgs.get_appointment();  
           var menu = null;  
           if(selectedAppointment.get_subject() == "A")  
                 menu = $find("<%= ContextMenuA.ClientID %>");  
            else if(selectedAppointment.get_subject() == "B")  
                menu =  $find("<%= ContextMenuB.ClientID %>");    
                  
            if(menu)  
                 menu.show(eventArgs.get_domEvent());  
          
        } 


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Samir Patel
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or