Home Unanswered Active Tags New Question

Cant get event handlers to work or do anything??? help

Please examplain the following as if i have in my c# code-behind file. The following code does not seem to be used. lets say for example i want to click on an a time with an event in. I would want it to be redirected to a page where they can view/edit that event. If they clicked on a time that was not used, it would redirect them to the NewEvent.aspx page for example.

From what i can see i am using the correct event handlers (as shown below) but nothing wants to work. It is nothing to do with postback. Please assist

Thanks,

Gareth

Asked by Gareth Evans 4 years ago.
Replies

Why has the code been removed. Here it is again. Why does this not work (no error, pahe just refreshes and noting else)

Comment posted by Gareth Evans 4 years ago.
I apologize for the disappearing code. I've fixed the forum code and nothing should be missing anymore (the security parsing was too strict).

You can also send the code directly to the support e-mail: daypilot @ annpoint.com.
Comment posted by Dan Letecky 4 years ago.
Can you post the resolution for this. I also cannot get the server side event to work. I set the eventClickHandeling to postback, and add a event handler to the code behind page. I used the syntax in section 7 of the online tutorial ( Server-side event handling) The appears the event is not being raised. Help please.
Comment posted by bob 4 years ago.
You need to set two properties (an example for moving):

EventMoveHandling="PostBack"
OnEventMove="DayPilotCalendar1_EventMove"

I guess you are missing the second one. Let me know if this was the problem.

Note that the signature of the handlers is different from the tutorial (even in DayPilot Lite):

protected void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
{
// ...
}
Comment posted by Dan Letecky 4 years ago.

That worked.

Thank you!!

Comment posted by bob 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java