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.
Unfortunately, activation email could not send to your email. Please try again.

ClientSideOnAppointmentClick not firing

Thread ID:

Created:

Updated:

Platform:

Replies:

101100 Sep 26,2011 05:40 PM Oct 4,2011 10:37 AM ASP.NET Web Forms (Classic) 5
loading
Tags: Schedule
Michael Bell
Asked On September 26, 2011 05:40 PM

I am wrapping the schedule control in my own wrapper to add some additional server side functionality. That being said I am trying to use the ClientSideOnAppointmentClick property. I have set it like the following:

this.ClientSideOnAppointmentClick = "wfPromptCalendarOnAppointmentClick('" + m_prompt.Name + "', this)";

When I debug I can see the javascript file that contains this client side method definition exists, but when i click on an appointment, the client side event is not firing. I tried putting a breakpoint in the first line of my javascript my method but it never gets hit even though i have provided a value for ClientSideOnAppointmentClick.


Michael Bell
Replied On September 26, 2011 05:44 PM

To add to this please note that I am assigning this in the construtor of my control:

public class PromptTaskCalendar : Schedule, IPromptControl
{
public PromptTaskCalendar(Prompt oPrompt, IOExtensionCollection oPromptExtensionCollection)
{
m_prompt = oPrompt;
m_promptExtensionCollection = oPromptExtensionCollection;
this.ScheduleType = ScheduleViewType.WorkWeek;
this.HiddenDays = Holidays.Weekend;
this.AutoFormat = "Office2007Silver";

this.DayStartHour = 7;
this.DayEndHour = 19;
this.StartWorkHour = 7;
this.EndWorkHour = 19;

this.ShowContextMenu = false;
this.ShowWeekStripItem = false;
this.ViewStrip = true;
this.EnableViewState = true;
this.AllowAddingAppointByCallBack = false;
this.AllowAppointmentResize = false;
this.AllowAppointmentDrag = false;
this.ClientSideOnAllDayAppointmentClick = "wfPromptCalendarOnAppointmentClick('" + m_prompt.Name + "', this)";
this.ClientSideOnAppointmentClick = "wfPromptCalendarOnAppointmentClick('" + m_prompt.Name + "', this)";
this.AllowInline = false;
}
}


Michael Bell
Replied On September 26, 2011 05:56 PM

Setting this seemed to resolve the issue:

this.EnableCallbacks = false;




Sridhar N [Syncfusion]
Replied On September 27, 2011 09:04 AM

Hi Michael,

Thanks for using Syncfusion Products.

We are happy to hear that your issue is resolved.

Please get back us if you have any other concerns.

Regards,
Sridhar N



Michael Bell
Replied On September 27, 2011 11:29 AM

Well its sort of solved. Im getting a warning sating that EnableCallbacks is depricated. Basically I want to be able to make an ajax call for the onclick of an appointment. Should i be using some other method to do this? adding an update panel seems like overkill for something that can simply be done via jquery.


Yogeshwaran [Syncfusion]
Replied On October 4, 2011 10:37 AM

Hi Michael,

Thanks for your update.


Sorry for the inconvenience caused. Since we have depreciated the internal callbacks in our control we strongly recommend you to use update panel for partially post backs in your page.

please let us know if you have any concerns.

regards,
Yogesh.


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.

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.

;