search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Upgrade Daypilot 5.4 to 6.2 SP5 - EventMoveHandling - eventMovePostBack not working

Asked by Nihas
13 years ago.

We have an issue as detailed below.

We were using the Daypilot 5.4 and for the Calndar control event move property we were using the code as below to set the event move attributes.

EventMoveHandling="JavaScript"

EventMoveJavaScript="MoveConfirm(dpcTest,e, newStart, newEnd, oldColumn, newColumn);"

here it was working fine and we were getting the e.NewResource property and e.OldResource property was set correctly when we move the event in resource view. Also please note that we were displaying a confirm javascript message before we call the "DaypilotControl.eventMovePostBack(e, newStart, newEnd, oldColumn, newColumn);" method and explicitly calling this postback method from client side inside the js function.

But now we are trying to upgrade to latest daypilot control(DayPilot Pro for ASP.NET 6.2 SP5). But here we are facing the issue when we use the same code mentioned above. Getting the e.NewResource property and e.OldResource property has same value so not able to move the event to different column. But it can be moved to same column.

As you mentioned before to use call back,we have tried as below but the problem here is we are not able to show the script message. Showing the confirm message is required one.

EventMoveHandling="PostBack"
EventMoveJavaScript="if (confirm('Do you want to move? ')){dpc1.eventMoveCallBack(e, newStart, newEnd, oldColumn, newColumn);} else { return false;}"


Here we specified the "PostBack" explicitly as we need a post back in the page as the callback does not post back. So showing the javascript confirm message is an issue now. Could you please help us to solve this issue? How can we get the resource(new,old) property value set correctly. Or how can we show the js message , post back action together. Please help.

Thanks and Regards,

Nihas

Comment posted by Dan Letecky
13 years ago.

The signatures of eventMoveCallBack() and eventMovePostBack() have changed (some time ago).

You should update the call as follows:

DaypilotControl.eventMovePostBack(e, newStart, newEnd, newColumn);

See also:

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.