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

Enable context menu for some appointments, not for all

1 Answer 13 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marja
Top achievements
Rank 1
Marja asked on 03 Sep 2015, 12:55 PM

I'm using the scheduler with webservice databinding.

Is it possible to enable the context menu for some appointments, but not for all? If so, how could that be accomplished?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Sep 2015, 07:21 AM
Hello,

You can handle the OnClientAppointmentContextMenu event and cancel the Contextmenu showing for some of them as in the code below:
function OnClientAppointmentContextMenu(sender, args) {
               var cm = args.get_appointment().get_contextMenu();
               if (args.get_appointment().get_subject()=="aaa") {
                   cm.add_showing(cancelMenuShowing);
               }
           }
 
           function cancelMenuShowing(sender, args) {
               args.set_cancel(true);
               sender.remove_showing(cancelMenuShowing);
           }


Hope this will help you solve the issue.

Regards,
Plamen
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Marja
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or