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

I want to hide Context menu OnClientAppointmentContextMenu Event.

2 Answers 54 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 31 May 2010, 03:14 PM

Dear Sir,
i want to hide or disable context menu OnClientAppointmentContextMenu event my code is following but it is not working.

 

function

 

OnClientAppointmentContextMenuClick(sender, eventArgs) {

 

 

 

 

 

 

 

var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>");

 

 

 

 

 

menu.visibility =

"hidden";

 

 

 

 

 

}

Please help me.
Thank You.
Chandan.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Jun 2010, 01:02 PM
Hello Chandan,

The following code will help you in disabling the appointment contextmenu in OnClientAppointmentContextMenu event.

client code:
 
<script type="text/javascript">  
    function OnClientAppointmentContextMenu(sender, args) {  
        sender.get_appointmentContextMenus()[0].set_enabled(false);  
    }  
</script> 


Regards,
Princy.
0
Chandan Kumar
Top achievements
Rank 1
answered on 02 Jun 2010, 02:23 PM
Hello Sir
Can U Give me all Method List. Related With Context Menu And Appointment and Time Slot Not Main Method.
I Want Sub Method Like

.get_subject()
.set_enabled(false)
etc.

Also
i want server side code alternate of following code

<script type="text/javascript">  
    function OnClientAppointmentContextMenu(sender, args) {  
        sender.get_appointmentContextMenus()[0].set_enabled(false);  
    }  
</script> 

 


Please Help Me.

Thank You.
Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Chandan Kumar
Top achievements
Rank 1
Share this question
or