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.
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
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
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.
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.
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).
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.
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.
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.
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.
Sathiyathanam Jeyakumar,
Thank you for your reply and advices.
I have modified my code acording to your advices.
Then my code work fine!
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.
Dhanasekar Mohanraj,
I marked your very helpful answer.
Thank you for your help.