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

[Solved] Read date and time using context menu from selected appointment

1 Answer 203 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
feroz minnadad
Top achievements
Rank 1
feroz minnadad asked on 17 Nov 2009, 05:30 AM
Hi,

I need to read 'date,time  and content' of the selected appointment in the scheduler using context menu.

Because i have to pass that 'date,time and content' as a Querystring to another page in application.

Please give any suggestion to get it.

Thanks in Advance.

Regards
Feroz ;-)


1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 Nov 2009, 10:40 AM
Hello Feroz,

RadScheduler supports context menus for both Appointments and Time Slots. You can try the following client side code for getting the start and end time and content of appointment when showing contextmenu.

javascript:
 
<script type="text/javascript"
function appointmentContextMenu(sender, eventArgs) { 
    var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>"); 
    selectedAppointment = eventArgs.get_appointment(); 
    alert(selectedAppointment.get_subject()); 
    alert(selectedAppointment.get_end()); 
    alert(selectedAppointment.get_start()); 
</script> 
[Attach OnClientAppointmentContextMenu event to RadScheduler]

You can also check the following demo which demonstrates how to use contextmenu in Scheduler:
Context Menu

Regards,
Shinu.
Tags
Scheduler
Asked by
feroz minnadad
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or