We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

I can not drag item in version 20.4.0.43

When I used SfTreeView Control of version 19.3.0.47, I could drag item in SfTreeView nodes.

But I upgrade SfTreeview version to 20.4.0.43, Suddenly It does not work.

Then I downgrade it's version to 19.3.0.47, it works fine.

Is it just happening to me?

I appriciate your any help.



Attachment: MySfTreeVeiwSample_799844c.zip

12 Replies 1 reply marked as answer

SJ Sathiyathanam Jeyakumar Syncfusion Team January 19, 2023 07:23 AM UTC

Hi Hitoshi Katashima,

We apologize for any inconvenience caused by the recent issue of "Not being able to perform drag and drop" in version (v20.4.0.43) of our software. We are pleased to inform you that we have identified and resolved the problem in our latest weekly NuGet release (v20.4.0.44). Please let us know if the issue has been resolved for you by testing the updated version.

Regards

Sathiyathanam



HK Hitoshi Katashima January 20, 2023 01:41 AM UTC

Thank you for your reply.


I tried version 20.4.0.44.


ItemDragStarting event works fine.


But when Item Dropped from SftreeView nodes,

ItemDropped event and ItemDropping event does not work in my code.

 I drop item from other application (example windows folder), these two event works fine.


For Refarence,

I attached screenshot of these event xaml to this mail.


Regards,


Katashima


Attachment: syncfusion_f90db3e0.zip


SJ Sathiyathanam Jeyakumar Syncfusion Team January 20, 2023 03:42 PM UTC

Hitoshi Katashima,

We are currently checking your reported issue with provided information and we need two more business days to validate this. We will update you with further details on January 24, 2023.




SJ Sathiyathanam Jeyakumar Syncfusion Team January 24, 2023 01:52 PM UTC

Hitoshi Katashima,  

We have reviewed the reported problem and have determined that the ItemDropping and ItemDropped events are functioning as intended. And when you Drag and Drop the item between the two different element ie. Source to target then the Drop event is only fired for dropped element ie. target object not for source object. If your Source and Target will be same element, then the Drop event will be fired for this case.We have attached the sample demo for your reference

We kindly request that you provide additional details and a reproducible sample or video illustration of the problem. Itwill be helpful  to investigate further and provide the solution as much earliest.


Attachment: Sample_c6fc2aa7.zip


HK Hitoshi Katashima February 1, 2023 05:11 AM UTC

Hi Sathiyathanam,


I appologize my late reply.


I tried again, both Drag And Drop Event work fine. Thank you for your help.


I'm sorry, AllowDrop property had been set 'false' value.


But I have new trouble at version 20.4.0.44.


If I bind ItemsSource property to Object belonged in class that 'Equals Method' and 'GetHashCode' Method is overrided (please see my screenshot code),

I select a item in SftreeView, then all item is like selected(please see my video clip).


Attachment: SfTreeView_trouble's_Code_and_Video_clip_6ee4a598.zip


SJ Sathiyathanam Jeyakumar Syncfusion Team February 2, 2023 04:39 PM UTC

Hitoshi Katashima

We are currently checking the reported problem with the provided information and we need two more business days to validate this. We will update you with further details on February 06, 2023.



SJ Sathiyathanam Jeyakumar Syncfusion Team February 6, 2023 04:56 PM UTC

Hitoshi Katashima,


We are able to reproduce the reported issue with the provided information. And currently we are trying to find the exact cause of this issue from our end. And we will update the further details on February 08,2023.



VS Vijayarasan Sivanandham Syncfusion Team February 8, 2023 05:24 PM UTC

Hitoshi Katashima,

We are still checking the reported issue. We need two more business days to validate this. We will update you with further details on Feb 10, 2023.



SJ Sathiyathanam Jeyakumar Syncfusion Team February 9, 2023 07:17 AM UTC

Hitoshi Katashima,

We apologize for the delay.

We have investigated the issue you reported, and we have discovered that the problem is due to the fact that you have overridden the Equals method in your sample. When you perform the selection we have checked the "SelectedItems.Contains(object)" method to check whether the object is already present in the SelectedItems collection. By default, the "Contains" method calls the "Equals" method when its called, so when we check if the object is contained in the "SelectedItems" collection, your custom implementation of the "Equals" method is called. In this implementation, you have returned "this.Id == EFIModel.ID", which we suspect is always true, leading to the unwanted selection. To resolve this issue, please ensure that you have defined a unique ID for your "EFIModel" for all objects.


Marked as answer

HK Hitoshi Katashima February 13, 2023 01:38 AM UTC

Sathiyathanam Jeyakumar,


Thank you for your reply and advices.

I  have modified my code acording to your advices.

Then my code work fine!





DM Dhanasekar Mohanraj Syncfusion Team February 13, 2023 01:54 PM UTC

Hitoshi Katashima, 

If you are satisfied with our response, please mark it as an answer. Otherwise, please let us know if you have any further queries on this. We are happy to help you.



HK Hitoshi Katashima February 13, 2023 09:55 PM UTC

Dhanasekar Mohanraj,


I marked your very helpful answer. 

Thank you for your help.


Loader.
Live Chat Icon For mobile
Up arrow icon