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

I want to open appointment context menu using left click not time slot context menu.

2 Answers 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 15 Nov 2010, 11:09 AM
Dear Sir,

I want to open appointment context menu using left click.
For Example :- When i click on appointment then open context menu using left click.

U gave time slot context menu solution.
but i want Appointment Context Menu using left menu.

Following Code Works For Time Slot Context Menu But Not For Appointment Context Menu.

function OnClientTimeSlotClick(sender, args) {
            sender._showTimeSlotContextMenu(args.get_domEvent(), args.get_targetSlot());
        }

So please Help Me.


Thanks
Chandan Kumar

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Nov 2010, 01:20 PM
Hello,


Give a try with following code and see whether it helps.

Client code:
function OnClientAppointmentClick(sender, args) {
    sender.get_appointmentContextMenus()[0].show(args.get_domEvent());
 
}



-Shinu.
0
Chandan Kumar
Top achievements
Rank 1
answered on 15 Nov 2010, 01:32 PM
Thanks.
Now its working.
Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Chandan Kumar
Top achievements
Rank 1
Share this question
or