HI,
in my implementation I need to allow the user to edit a node name.
When I edit the name and change the focus of the node the value inside the Content is the new one.
If I press Enter the value is the old one. Am I wrong or is it a issue?
See the video using your sample source.
thanks so much for the support
Hi Karim Busoli,
We have reviewed your scenario. We need time to validate it. We will provide further details on May 6, 2024
Hi Karim Busoli ,
We have reviewed your scenario. When performing an EndEdit with different scenarios in focus change and Enter key behavior, in the case of focus changing, the value is updated through the binding expression. This occurs when the control loses focus upon clicking another treeview item, and then only triggers the event since mouseup is triggered after changing focus.
When pressing the Enter key after performing editing, it first triggers the EndEdit event because we have handled the Enter key in the SelectionController. Then, it updates the binding expression, which in turn updates the value.
This is the default behavior.
Hi Sweatha Bharathi,
Thank you for the explanation. So am I doing something wrong?
I need the update to happen both with the change of focus and with Enter and if I understand these are the default choices.
How do I manage the Enter pressure?
Hi Karim Busoli ,
We have checked the
reported issue “When performing editing and pressing the Enter key, the ItemEdit event
returns the old TreeviewItem value ” on our end and it is
confirmed as a defect. And We have logged a bug. We will fix this issue and
include it in our NuGet release Which is scheduled on May
28, 2024.
You can track the status of this report through the following feedback link,
We will let you know once it is released. We appreciate your patience until then.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Hi Karim Busoli ,
We regret for the inconvenience.
Upon
analyzing the reported scenario, we found that the binding of Current Item is
not updating properly when the enter key is pressed. We are facing difficulties
in updating the current item when pressing keys. So we are unable to include the fix for this issue in our NuGet
package which is released today as promised.
We will fix this issue
and include it in our upcoming weekly NuGet release scheduled for June 4,
2024.
We will inform you once it is released. We appreciate your patience until then.
Hi Karim Busoli ,
We regret
the inconvenience.
We
are encountering issues with the TextBox binding update when the ENTER key is
pressed within the current framework. The value updates accurately when we set
the UpdateSourceTrigger to PropertyChanged for TextBox binding in an
EditTemplate of SfTreeView.
We are in the process of determining whether this
PropertyChanged setting is managed internally by the TreeView or if it is
advisable to include the UpdateSourceTrigger as PropertyChanged for TextBox
binding in an EditTemplate of SfTreeView at the sample level. As this
assessment is still in progress, we are not in a position to apply the changes
at this time.
Therefore, we are unable to include the fix for this issue in our NuGet package released today as promised. We will include the fix in our first weekly NuGet release after the Volume 2, 2024 Main Release.
We will inform you once it is released. We appreciate your patience until then.
Hi Karim Busoli,
We apologize for the inconvenience caused.
As we mentioned earlier, this issue can be resolved by setting UpdateSourceTrigger to PropertyChanged for TextBox Binding in an EditTemplate of SfTreeView at the sample level.
We have attached the sample with required code changes and video for your reference. Could you please check whether the issue is resolved?
Regards,
Manikanda Akash
I solved it, thanks
Karim
Hi,
I apologize but I noticed an anomaly that also occurs in your example project. If I edit the node with F2 the sfTreeView1.ItemBeginEdit event is triggered. While if you use "right mouse click" > Edit this does not happen.
thanks
Karim
Hi Karim,
Event support will not be considered for begin editing either through Edit Commands or through programmatic methods and event support will be considered only for editing through mouse or keyboard interactions. This is the expected behavior.
We hope this helps. Please let us know if you need any further assistance.
Regards,
Gokul S