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. Image for the cookie policy date

sundry treeview questions

Cancelling a node name change
Can this be done?
I''d like to prompt the user to confirm they wish to save the change, or cancel if preferred.

Scrolling into view.
If I expand a node and the tree is bigger than the area assigned to it, the expanded node scrolls off the page. This is a real pain where the user wants to drill down nodes at the bottom of the display area. Is there any way to keep the selected node in view when it is expanded?

storing data in a node.
I would like to store more than just an ID and description in a node (eg I want to store the parent Id because I want to be able to "walk" up the tree to find my parents).
Is there a way to do this?

many thanks guys!

3 Replies

BH Bhuvana Syncfusion Team August 28, 2006 10:10 AM UTC

Hi Tony,

Scrolling into view: In the beta version of 4.3, when vertical scrollbar appears, by default, the view of the selected node will be maintained.

Canceling a node name change: You can press ESC to cancel the node text changes. There is no option provided to prompt the user for confirmation.

Storing data in node: In 4.3 beta, we have included ''Value'' property in which you can store any internal strings.

Otherwise, you can get the parent node as follows:

//FindNode() is used to get the node by giving childID
TreeViewNode childnode = TreeView1.FindNode("childnodeID");
//ParentItem is used to get the parent node of the childnode
string x=childnode.ParentItem.Text;

You can download the beta version of 4.3 at:

http://www2.syncfusion.com/Installs/v4.3.0.1/syncfusionessentialstudiosetup.exe

Please contact our sales person for the unlock key.

Regards,
Bhuvana


RP Ramesh Praveen Syncfusion Team August 28, 2006 03:36 PM UTC

Tony,

Please download this later beta at:

http://www2.syncfusion.com/Installs/v4.3.0.7/syncfusionessentialstudiosetup.exe

-Praveen


AD Administrator Syncfusion Team November 30, 2006 10:11 PM UTC

Hi Tony,

Our 4.4 final version has been released today. This version includes advanced features and fixes.

Please download it in the following location,

http://www2.syncfusion.com/Installs/v4.4.0.51/syncfusionessentialstudiosetup.exe

Thank you for using syncfusion products.

Regards,
SureshSekaran

Loader.
Live Chat Icon For mobile
Up arrow icon