We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ClientSideOnScheduleMenuItemClick

Does ClientSideOnScheduleMenuItemClick function implemented?
if yes - how do i use it?


5 Replies

SN Sridhar N Syncfusion Team July 1, 2011 05:48 AM UTC

Hi Hilla,

Thanks for our interest in Syncfusion products.

Query #1"Does ClientSideOnScheduleMenuItemClick function implemented? if yes - how do i use it?"

Your requirement to use ClientSideOnScheduleMenuItemClick can be achievied by adding the client side event for ClientSideOnScheduleMenuItemClick. Please refer the below code snippet.

[ASPX]

Width="700px" runat="server" ScheduleType="day" StartDate="04/21/2010" AutoFormat="Office2007Blue"
ShowContextMenu="true" ClientSideOnScheduleMenuItemClick="MenuClick1" >

................


................










function MenuClick1(obj)
{
if(obj.menuItem == "Menu Item 1")
alert("Menu Item 1 selected");
else
alert("Menu Item 2 selected");
}


For your convenience, we have created sample and the same can be downloaded from the following link.

Clientside schedule event406628265.zip

Please let me know if you have any other questions or concerns.

Regards,
Sridhar.N




HZ Hilla Zucker July 3, 2011 06:44 AM UTC

thanx for the quick reply,

How do i know which appointment was clicked (datetime & resource or appointmentID)



SN Sridhar N Syncfusion Team July 4, 2011 05:01 AM UTC

Hi Hilla,

Thanks for your update.

Query #1 "How do i know which appointment was clicked (datetime & resource or appointmentID)"

Your requirement can be achieved by getting the values from the argument of Javascript function defined for ClientSideOnScheduleMenuItemClick event. Please refer the below code snippet.

[Javascript]

function MenuClick1(obj)
{
if(obj.menuItem == "Menu Item 1")
//obj contains appointment from that ID can be accessed
alert("Appointment ID -" + obj.appointment.ID
//obj contains appointment from that StartTime,EndTime can be accessed
+ "StartTime -" + obj.appointment.StartTime
//obj contains appointment from that ResourceData can be accessed where ID and Name of resource is available
+ "ResouceID -" + obj.appointment.ResourceData.ID);
else
alert("Menu Item 2 selected");
}


For your convenience, we have created sample and the same can be downloaded from the following link.

F100068174844038.zip

Please let me know if you have any other questions or concerns.

Regards,
Sridhar.N



HZ Hilla Zucker July 4, 2011 06:51 AM UTC

Perfect, thank you



SN Sridhar N Syncfusion Team July 5, 2011 04:41 AM UTC

Hi Hilla,

Thanks for your update. We are glad to know that your issue has been resolved. Please let us know if you have any other concerns so that we will be happy to help you out.

Regards,
Sridhar N


Loader.
Live Chat Icon For mobile
Up arrow icon