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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit TreeViewItem

Thread ID:





129834 Apr 5,2017 04:06 PM UTC Apr 12,2017 04:50 AM UTC WPF 2
Tags: TreeViewAdv
Asked On April 5, 2017 04:06 PM UTC

I'm using TreeViewAdv control and i have collection of  custom class objects binded as items source. Im also using custom item template containing only TextBlock. Is there any easy way to disable edit mode on tree view items?

I've noticed strange behaviour of TreeViewAdv control.
First issue is connected to focus. I've added handler for keyDown event on control and checking for delete key. When key is pressed, i delete selected items. After that control "loses" focus, focus is still on control, but no key press event is passed forward. Same behaviour remains if i click on other control and then back on TreeView. It only starts working again when i click on tree view item.
Second issue is connected to drag and drop. When i move item (from one parent to another), it stays selected but i am unable to move it again. I need to select another item to be able to move first item again. IsSelected property is two way binded to my custom class property.
Third issue is connected with background and foreground color. This is a bit hard to reproduce, but i've manage it by doing "monkey mode" - adding a bunch of items and wildly smashing on mouse button to select and move items. Foreground and background colors sometimes become the same. This occurs on Blend visual style (tried olny blend and default).

A bit off topic if i'm already mentioned blend visual style: You should really cosinder to revisit. Black color on negative values and green for zero value in numeric control is a bit wierd and unreadable. Scroll bar too thin (wasted space around bar). Why rounded buttons (this is just personal opinion)?

A bit more off topic just to not open a new thread: Property grid now always handle mouse wheel events, even if i scroll on top of property names. I had to manually override mouse wheel preview event on property grid and pass it to root (stack panel) to have working scroll bar. Controls are dynamicly added to stack panel.


Replied On April 6, 2017 07:56 AM UTC

Found solution for editable tree item
Last time search was not working properly

Other issues still remains


Venkateshwaran Ramdoss [Syncfusion]
Replied On April 12, 2017 04:50 AM UTC

Hi Bojan, 
Thank you for contacting Syncfusion Support. 
A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates 
Venkateshwaran V.R.   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon