Stopping treeview from scrolling when mouse leaving with drag and drop.

Hello,

I am using both a TreeViewAdv control and a SfDataGrid to display some date.
From the TreeView, i drag the items i want visualised onto the Datagrid to display them.

I got this to work fine, except when the mouse leaves the treeview (while dragging) from the top or the bottom.
The treeview will start scrolling, and will not stop until you start a new drag event in the treeview.

Is there any way i can stop the scrolling once the mouse leaves the control?


15 Replies 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team December 9, 2021 05:31 PM UTC

Hi Kevin, 
 
Greetings from Syncfusion. 
 
We are checking your reported query and we will update the further details on 10th December 2021.We appreciate your patience until then. 
 
Regards, 
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team December 11, 2021 11:34 AM UTC

Hi Kevin, 

Thanks for your patience. 

We can reproduce the reported issue and we are working to find the exact cause of this issue. So, we need some more time and we will update the further details on 13th December 2021.We appreciate your patience until then. 

Regards, 
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team December 13, 2021 01:40 PM UTC

Hi Kevin,  

Thanks for your patience. 

While drag the item AutoScroll was enabled in TreeViewAdv. We could not change this behavior at our end. Moreover, we are working to achieve this requirement in sample level. We will update you the further details on 15th December 2021. 

Regards, 
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team December 16, 2021 04:13 PM UTC

Hi Kevin, 
 
On the further analysis we have tried to achieve this requirement with sample level by handling the MouseMove event, but the auto scroll was enabled internally. While drag the items auto scroll was enabled to drop the items in bottom of the TreeViewAdv. This is a default behavior, and we could not change this behavior at our end.  
 
Regards, 
Elakkiya 



KS Kevin Schrasser December 21, 2021 08:01 AM UTC

Hello Elakkiya,

I thank you for analyzing the issue, but even if it is intended behaviour, this does not help me.

If i am unable to stop the autoscroll, it will be concidered as a bug in my application.

Therefore, i would still like to know a way to stop this behaviour, at least when i complete or cancel a drop outside of the TreeViewAdv element.

If it keeps scrolling during the drag, that's fine. But not after a drop has occured. I would like to know how i can stop this function from firing after the drop has occured.



EM Elakkiya Muthukumarasamy Syncfusion Team December 21, 2021 11:36 AM UTC

Hi Kevin, 
 
 
We are unable to reproduce the reported query “When i complete or cancel a drop outside of the TreeViewAdv element need to stop autoscroll stopped” with simple sample in 19.4.038 version at our end. While lost the focus in TreeViewAdv auto scroll was stopped. Please refer the sample and video for the same. 
 
 
 
Please check the above sample and video and confirm that our replication is the same as yours. If not, please modify the sample as the issue is reproduceable. It would be helpful to provide a prompt solution to this. 
 
Regards, 
Elakkiya 



KS Kevin Schrasser December 21, 2021 12:20 PM UTC

Hello Elakkiya,

I've added a video to show you the issue that i'm getting.

I will also compare to the sample to see what is different compared to my code.


Attachment: 20211221_131626_4075e87c.zip


TB Thirupathi Bala Krishnan Syncfusion Team December 22, 2021 02:51 PM UTC

Hi Kevin, 

We have analyzed your reported query "Stopping treeviewadv from scrolling when mouse leaving with drag and drop" We checked the reported scenario with modified sample, but we were still unable to reproduce the reported issue in our end. Could you please share the XAML code snippet of your application of treeview and datagrid view so that we can reproduce it on our end and provide a solution as soon as possible? 

Regards, 
Thirupathi B. 



KS Kevin Schrasser December 22, 2021 03:25 PM UTC

Hello Thirupathi,


As requested i have added some code snippet from how i use it in the application.

I cannot add all of the functions to it, as this would simply be way too much code. Some functions in the snippet (like StopDiagRead) are to stop a backgroundworker from gathering data from other hardware.


One thing i did notice is that you made the sample with .net 4.8. Please note that i am using .net 5.0 in my application. Maybe that this may give different results.


Attachment: codesnippet_cd702089.zip


AA Arunthivakar Azhagu Syncfusion Team December 23, 2021 05:33 PM UTC

Hi Kevin,


Currently, we have forwarded the query to our internal team. We will provide further details on 27th December 2021.


We appreciate your patience until then.


Regards,

Arunthivakar A



VS Vijayarasan Sivanandham Syncfusion Team December 27, 2021 12:11 PM UTC

Hi Kevin Schrasser,

Thank you for your patience. 

We are still working on this. We will update with further details on or before December 29, 2021.

We appreciate your patience and understanding. 

Regards, 
Vijayarasan S


VS Vijayarasan Sivanandham Syncfusion Team December 29, 2021 11:30 AM UTC

Hi Kevin Schrasser, 

We have created bug report for the reported issue “Automatic scrolling does not stop when mouse leaves the TreeView while dragging the node”. We will fix this issue and include in our January 18th, 2022 NuGet release.

You can track the status of this report through the following feedback link,

Feedback Link: https://www.syncfusion.com/feedback/31545/automatic-scrolling-does-not-stop-when-mouse-leaves-the-treeview-while-dragging 

Note: The provided feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.

Regards,
Vijayarasan S 



VS Vijayarasan Sivanandham Syncfusion Team January 18, 2022 10:53 AM UTC

Hi Kevin Schrasser,

We are glad to announce that our latest weekly NuGet package update version 19.4.0.43 has been is rolled out with the “Automatic scrolling does not stop when mouse leaves the TreeView while dragging the node” and is available for download.

Feedback Link: https://www.syncfusion.com/feedback/31545/automatic-scrolling-does-not-stop-when-mouse-leaves-the-treeview-while-dragging

Please let us know, if you require further assistance on this.

Regards,
Vijayarasan S


Marked as answer

KS Kevin Schrasser January 28, 2022 12:58 PM UTC

Hello Vijayarasan,

Sorry for the late answer but i was busy with another project.

I have just tested it, and indeed it is fixed!

Thank you very much.

Unfortunatly i think i have found a new bug, but that has to do with SfDataGrid, so i'll check first if this has been noticed already. If not, i'll make a new post about it.



VS Vijayarasan Sivanandham Syncfusion Team January 31, 2022 11:42 AM UTC

Hi Kevin Schrasser, 

We are glad to know that the reported problem has been resolved at your end. Please get back to us if you need any other assistance.

Regards, 
Vijayarasan S 


Loader.
Up arrow icon