Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable DragDrop (Read 2302 times)
elwin
Ex Member


Disable DragDrop
Feb 19th, 2010 at 10:41am
Print Post  
Items in the calendar control standard can be dragged and dropped.
Now I want to disable this option so the user can't drag and drop items.
I have set the properties AllowDrag and AllowDrop to False but the option is still active.

How can this be done?

Thanks in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Disable DragDrop
Reply #1 - Feb 19th, 2010 at 11:33am
Print Post  
The item interactions in MindFusion.Scheduling are not implemented as .NET drag-and-drop operations, therefore all members related to drag-and-drop (such as DragDrop, DragEnter, AllowDrag and AllowDrop) do not affect item interactions in any way. Instead you should use the properties and events of the Calendar control and the Item objects.

To disable item interactions, you can simply handle the ItemModifying event of the Calendar control and set the Confirm property of the associated event argument to false. You can also disable interaction on per-item basis through the AllowChangeStart, AllowChangeEnd and AllowMove properties of individual items. For example, setting AllowChangeStart and AllowChangeEnd on an item to false will prevent this particular item from being resized interactively.

Regards,
Meppy
  
Back to top
 
IP Logged
 
elwin
Ex Member


Re: Disable DragDrop
Reply #2 - Feb 19th, 2010 at 12:19pm
Print Post  
Thanks!
So simple when you know it  Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint