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

Event Move

Asked by Anonymous
9 years ago.

I've followed the tutorial and added an event handler and set event move handling like so:
EventMoveHandling="CallBack"
OnEventMove="DayPilotCalendar1_EventMove"

but whenever I load the page with the DayPilot Scheduler control it seems that moving an event is still disabled, I get no change of cusor when i mouse over / hold mouse down on an event to move it.

My event handler in VB looks like:

Public Sub DayPilotCalendar1_EventMove(ByVal sender As Object, ByVal e As DayPilot.Web.Ui.Events.EventMoveEventArgs)

dbUpdateEvent(e.Tag("id"), e.NewStart, e.NewEnd, e.NewResource)

DayPilotScheduler1.DataBind()
DayPilotScheduler1.Update()
End Sub

Is there anything else im missing here?

Thanks

Comment posted by Anonymous
9 years ago.

Update: It seems that move is actually working but the handle to grab the event is only the top left corner of the duration bar and not the whole thing, is there a way for me to change this?

Comment posted by daomingzu
8 years ago.

fuckyou

Comment posted by daomingzu
8 years ago.

jk

Comment posted by Anonymous
8 years ago.

The default EventMoveMargin is 5
Try setting it to a larger number i.e. EventMoveMargin = 100

Might be a good idea to update the tutorial because I got stuck on the same issue.

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