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

Scheduler Event Move with ctrl key : NullReferenceException

Asked by Dominique
7 years ago.


I want to move a Event with ctrl Key Down.
I copied the code from documentation.
EventMoveJavaScript="dps.eventMoveCallBack(e, newStart, newEnd, newResource, {ctrl: ctrl, shift: shift} )"

protected void DayPilotScheduler1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
bool ctrl = (bool)e.Data["ctrl"];
// my code for update

When I execute the code, I have a NullReferenceException to the line " bool ctrl = (bool)e.Data["ctrl"]; "

I don't understand why ?
What I forgot in my code ?

Please help me.


Answer posted by Dan Letecky [DayPilot]
7 years ago.

You need to change EventMoveHandling="CallBack" to EventMoveHandling="JavaScript".

It's now added to the documentation:

Answer posted by Dominique
7 years ago.

Ok, it works.


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