Enable context menu for some appointments, not for all

2 posts, 0 answers
  1. Marja
    Marja avatar
    70 posts
    Member since:
    Nov 2013

    Posted 03 Sep 2015 Link to this post

    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?

  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 07 Sep 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top