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.
Unfortunately, activation email could not send to your email. Please try again.

TreeviewAdv with dockingmanager gives label editing problem

Thread ID:

Created:

Updated:

Platform:

Replies:

56820 Feb 21,2007 08:37 AM Feb 22,2007 02:29 AM Windows Forms 3
loading
Tags: Tools
Oskar
Asked On February 21, 2007 08:37 AM

Hi!

I get an unwanted behaviour when I use a docking manager on a windows form and enable docking to a TreeViewAdv. The problem is as follows:

If I start editing the label of a node, the only way to end the editing seems to be to press Enter key or Esc key. I can not get a node out of label edit mode by a mouse click somewhere else in the tree which is possible when a treeviewadv is hosted on a windows form without a docking manager.

This misbehaviour (feature?) can be reproduced by adding a docking manager to the "TreeViewAdv LoadOnDemand Demo" and enable docking to the tree.

Best Regards,
Oskar

Oskar
Replied On February 21, 2007 08:39 AM

I should have mentioned that I'm using Syncfusion Essential Suite 4.4.0.51.

Murugan [Syncfusion]
Replied On February 21, 2007 02:21 PM

Hi Oskar,

We could reproduce the misbehavior here. But this could be solved by handling MouseDown event of the TreeViewAdv control.

Here is the code snippet:

private void treeViewAdv1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
Syncfusion.Windows.Forms.Tools.TreeNodeAdv tvaNode;

tvaNode = this.treeViewAdv1.GetNodeAtPoint( e.X , e.Y );

if ( tvaNode == null )
{
this.treeViewAdv1.EndEdit();
}
else
{
if ( this.treeViewAdv1.SelectedNode != tvaNode )
{
this.treeViewAdv1.EndEdit();
}
}

}

Herewith I have attached the sample. Please refer to the sample and let me know if it helps you.

56820_TDM_TreeViewLabelEditIssue

Thank you for using Syncfusion products.

Regards,
Murugan P.S

Administrator [Syncfusion]
Replied On February 22, 2007 02:29 AM

Thanks for the quick response.

The suggested solution works as expected.

Regards,
Oskar

CONFIRMATION

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.

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.

;