SfDataGrid.AllowDrop=False not working

Hello,
I have databound TreeViewAdv and SfDataGrid in my view. I'm using drag&drop functionality in treeview but in datagrid I want it disabled. So I've set AllowDrop = False on datagrid. But still I'm able to drop items from treeview there. Isn't that a bug?
I can see in debugger's inspector that each GridCell has AllowDrop=True, when I change it dropping is disabled on that cell. But I want it to be disabled globally.

Thank you for your help.

Ond5ej Svoboda

6 Replies

GT Gnanasownthari Thirugnanam Syncfusion Team February 25, 2018 09:19 AM UTC

Hi Ondrej, 

We are unable to reproduce the reported “AllowDrop=Flase” not working issue in our side. For your reference we have attached the tested sample and video in below mentioned location.  

Could you please share the below needed details to us that will be helpful to provide appropriate solution at the earliest. 

  1. If it is possible please share your application which reproduces the issue.
  2. Please revert to us with modified sample based on your application scenario.
  3. Please share the customized details of DragDropController in your application.
  4. Please share the currently used Syncfusion product version details.

Regards, 
Gnanasownthari T. 
 



OS Ondrej Svoboda February 26, 2018 09:06 AM UTC

Hi,
thank you for your sample.
I'm attaching modified sample where the problem can be reproduced.

Changes:
- I commented out four lines in MainWindow constructor
- added these setup to treeviewadv: AllowDragDrop="True" DragDropEffect="MoveOnly"

Now you can drag items from treeviewadv to sfdatagrid (with allowdrop=false). The dragged items are not shown in sfdatagrid but they dissapear from treeviewadv. 
I would also expected different cursor (unavailable cursor) when dragging items to sfdatagrid with allowdrop=false. Now it shows cursor which tells the user that dropping is allowed.
Interesting part is when I change DragDropEffect to "Move" than it works, but the cursor is still wrong.

I'm using version 15.4.0.20.

Regards
Ondřej Svoboda


Attachment: sfdemo_1f3b306d.zip


KJ Keerthana Jegannathan Syncfusion Team February 28, 2018 03:50 AM UTC

Hi Ondrej, 
 
We are able to reproduce the issue “Dragged items get removed from TreeViewAdv for “MoveOnly” type DragDropEffect” with TreeViewAdv in our side. We have logged defect report for this and we will include fix for the reported issue in our Volume 1 SP1 release which is expected to be available on end of March, 2018. 
 
Regards, 
 
Keerthana J 



OS Ondrej Svoboda February 28, 2018 09:01 AM UTC

Thank you.


KJ Keerthana Jegannathan Syncfusion Team March 1, 2018 04:23 AM UTC

Hi Ondrej, 
 
Thanks for your update. 
 
You are welcome. 
 
Regards, 
 
Keerthana J 



GS Gokul Sainarayanan Syncfusion Team April 20, 2018 11:17 AM UTC

Hi Ondrej,

We have implemented drag and drop support from SfDataGrid to TreeViewAdv and vice versa. In this implementation changes, your reported issue has been fixed. We would include this feature in our Vol 2, 2018 release.

Regards,
Gokul S

Loader.
Up arrow icon