Wednesday, 15 April 2015

c# - drop data on scheduler -



c# - drop data on scheduler -

iam using devexpress xtraschedulercontrol drag&drop operation. iam using list datasource , if want create new appointment, possible drag&drop appointment gridcontrol. far good.

if drop appointment how can check authority? know appointmentdrop event , handle dropped appointment isnt in datasource. schedulercontrol show appointment. can

storage.refreshdata()

but there no way. dont want show appointment. point nobody should able create appointment on sunday or holiday etc. cant understand why appointment shown, if dont load datasource.

i got right solution.

private void scheduler_appointmentdrop(object sender, appointmentdrageventargs e) { if (isallowed) { mydatasource.add(e.editedappointment); } } private void scheduler_dragdrop(object sender, drageventargs e) { schedulerstorage.refreshdata(); }

c# .net devexpress

No comments:

Post a Comment