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.

background of node painted as if selected

Thread ID:

Created:

Updated:

Platform:

Replies:

72985 Apr 14,2008 07:07 PM Apr 25,2008 02:21 AM Windows Forms 2
loading
Tags: Tools
Lucie Fortin
Asked On April 14, 2008 07:07 PM

I'm using a treeviewAdv. Selecting a node displays editable information about the node.
I'm using the BeforeSelect event to determine if the SelectedNode is in a valid state before a new node can be selected and cancel the event if the SelectedNode is not in a valid state. When I try to select a different node when the SelectedNode is not valid, it doesn't select the new node but it paints that node (text has a colored background) as if it were selected and the actual selected node no longer looks selected (well it has a dotted line around the text) How can I fix this issue without doing a tree refresh which freezes the screen for a couple seconds?


Lucie Fortin
Replied On April 18, 2008 07:13 PM

See the code attached. If you select node6, a messagebox pops up. If you drag the messagebox over the node 6, it duplicates the behaviour described in the original posting.

>I'm using a treeviewAdv. Selecting a node displays editable information about the node.
I'm using the BeforeSelect event to determine if the SelectedNode is in a valid state before a new node can be selected and cancel the event if the SelectedNode is not in a valid state. When I try to select a different node when the SelectedNode is not valid, it doesn't select the new node but it paints that node (text has a colored background) as if it were selected and the actual selected node no longer looks selected (well it has a dotted line around the text) How can I fix this issue without doing a tree refresh which freezes the screen for a couple seconds?





TreeViewAdv1.zip

Fathima Shalini P [Syncfusion]
Replied On April 25, 2008 02:21 AM

Hi Goose,

Thank you for your interest in Syncfusion Products.

Treeview's BeforeSelect event paints the node's background to selected node's background color when the Messagebox is moved above it.

We suspect this issue to be a defect. We have sent this to our developers for more analysis. We will update you once we get back from them.

Please let me know if any concerns.

Regards,
Fathima


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.

;