Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Troubleshooting Drag and Dropping Items (Read 587 times)
Michael Hopkins
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Apr 5th, 2022
Troubleshooting Drag and Dropping Items
Aug 15th, 2023 at 10:02pm
Print Post  
I have been tasked to add drag and drop functionality to our scheduler that uses JPlanner. I had before removed drag and drop by adding the following code.

Code
Select All
calendar.allowDrag = false
calendar.allowMoveUnselectedItems = false
calendar.allowAutoScroll = false
calendar.allowInplaceCreate = false
calendar.allowInplaceEdit = false
 



So I added instead

Code
Select All
calendar.allowDrag = true
calendar.allowMoveUnselectedItems = true
calendar.allowAutoScroll = true
calendar.dragFeedBackType = DragFeedBackType.InsertionLine
calendar.allowInplaceCreate = true
calendar.allowInplaceEdit = true
 



and I cannot drag the items at all. They don't move. Is there something I am missing. Can anyone think of anything else that would prevent drag and drop functionality on the calendar?

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


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: Troubleshooting Drag and Dropping Items
Reply #1 - Aug 16th, 2023 at 10:21am
Print Post  
If you mean dragging internally within the calendar, check if appointments' Locked property isn't enabled by chance, or maybe some validation event handler preventing modifications. If you mean dragging from external controls to the calendar, check the two DragAndDrop sample projects.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Michael Hopkins
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Apr 5th, 2022
Re: Troubleshooting Drag and Dropping Items
Reply #2 - Sep 7th, 2023 at 9:29pm
Print Post  
Yes, I did mean dragging inside the calendar. And yes, it was the locked on the item that was preventing it. Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint