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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ClientSideOnScheduleMenuItemClick

Thread ID:

Created:

Updated:

Platform:

Replies:

100068 Jun 30,2011 10:53 AM UTC Jul 5,2011 04:41 AM UTC ASP.NET Web Forms (Classic) 5
loading
Tags: Schedule
Hilla Zucker
Asked On June 30, 2011 10:53 AM UTC

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


Sridhar N [Syncfusion]
Replied On 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



Hilla Zucker
Replied On July 3, 2011 06:44 AM UTC

thanx for the quick reply,

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


Sridhar N [Syncfusion]
Replied On 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
+ "\nStartTime -" + obj.appointment.StartTime
//obj contains appointment from that ResourceData can be accessed where ID and Name of resource is available
+ "\nResouceID -" + 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


Hilla Zucker
Replied On July 4, 2011 06:51 AM UTC

Perfect, thank you


Sridhar N [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;