prevent dragging out of the window in schedule

  • I have set up the external drag and drop scheduler using Angular
  • when we drag the item from the right side of the section from the list and drag a bit on the right side it goes out of the screen
  • how can we prevent it to go drag out of the screen while dragging?
  • screenshot attached


3 Replies

SK Satheesh Kumar Balasubramanian Syncfusion Team September 2, 2021 09:39 AM UTC

Hi Anass, 
  
Thanks for using Syncfusion Products. 
  
We have validated your reported query and provided dragArea property in the angular treeview sample to resolve this issue. 
  
  
app.component.html:   
<ejs-treeview #treeObj [fields]='field' cssClass='treeview-external-drag' dragArea=".drag-sample-wrapper" 
                [allowDragAndDrop]='allowDragAndDrop' (nodeDragStop)="onTreeDragStop($event)" 
                (nodeDragging)="onItemDrag($event)"> 
</ejs-treeview> 
  
Kindly try the above solution and let us know if your need any further assistance. 
  
Regards, 
Satheesh Kumar B 



AN Anass September 15, 2021 04:37 PM UTC

Hiii  Satheesh

i used this solution but it did not fix the problem.

Versions of my ejs packages  :


Thanks for you .



VD Vinitha Devi Murugan Syncfusion Team September 16, 2021 01:31 PM UTC

Hi Anass, 
  
Thanks for your update. 
  
We have validated your reported issue with your shared navigation package version ^17.3.27 and let you know that you face the problem due to you are using old version of navigation package in your project. So we suggest you to upgrade the navigations package version to above v.18.1.54 or latest one(v19.2.62) to resolve issue. Please refer below release notes details of dragArea support in treeview. 
  
  
Regards, 
Vinitha 


Loader.
Up arrow icon