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.

Deselecting the nodes in tree view

Thread ID:

Created:

Updated:

Platform:

Replies:

42324 Mar 27,2006 04:15 AM Mar 27,2006 10:14 AM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 27, 2006 04:15 AM

Hi, When I am loading tree view, the first node is getting selected by default. I don''t want this to happen. Any work around will be of great help. Thanks and regards, Maneesh

Deepa TS [Syncfusion]
Replied On March 27, 2006 10:14 AM

Hi Maneesh, Our Syncfusion TreeViewAdv control is closely modelled on the Windows Forms TreeView control. The TreeView has a node selected at all times. To ensure consistency we have incorporated the same behavior in our TreeViewAdv as well. However you could workaround this at application load time as follows : 1. At designtime, set the TreeViewAdv''s InactiveSelectedNodeBackground.Style value to None, such that the InactiveSelectedNodeBackground property value becomes null. 2. When the application loads, the control with the least value for its TabIndex property has focus. Make sure that there is atleast one other control with its TabIndex property less than the TreeViewAdv''s TabIndex property. For example, in the sample attached below, the Button has the least tabIndex value and hence has focus when the application loads. So none of the nodes in TreeView and TreeViewAdv has focus. But if either of them have a lesser TabIndex value then atleast one node will be selected. Please let me know if you have any questions. Best Regards, Deepa AvoidSeletion

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.

;