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.

Adding nodes to a TreeView from the browser

Thread ID:

Created:

Updated:

Platform:

Replies:

48369 Aug 25,2006 05:53 AM Oct 17,2006 06:10 AM ASP.NET Web Forms (Classic) 4
loading
Tags: Tools
Tony Butler
Asked On August 25, 2006 05:53 AM

Hi,

The subject says it all.
I would like the user to be able to add nodes dynamically. The only dynamic adding examples I have seen do this server side.
Ideally, ajax would be involved to provide a richer user experience.

Has anyone done this/got any suggestions on how to do it?

thanks

Tony

Bhuvana [Syncfusion]
Replied On August 28, 2006 07:30 AM

Hi Tony,

By setting ExpandMode property of the TreeViewNode to ServerSideCallback, the server-side Expand event will be triggered via callback, during which the node can be added dynamically.

Let us know if you need further assistance.

Regards,
Bhuvana

Tony Butler
Replied On August 29, 2006 03:02 AM

Hi,

That''s not quite what I mean.
I want the user to be able to add a new node at "runtime". They will navigate a hierarchy (Which yes, is loaded on demand via ajax callbacks) to the appropriate point, and then choose to add a new node, which I want automatically saved back into the data source as well as seeing it on screen.
Ideally, this adding node functionality will be using ajax also.

cheers,

Tony

Bhuvana [Syncfusion]
Replied On September 1, 2006 10:34 AM

Hi Tony,

Sorry for the inconvenience.

After 4.3 release, scheduled for next week, we will immediately work on implementing this feature and update you within 3 weeks time.

Regards,
Bhuvana

Bhuvana [Syncfusion]
Replied On October 17, 2006 06:10 AM

Hi Tony,

Sorry for the delayed response.

As you had requested earlier, Treeview can be placed inside CallbackPanel and you can add/remove the nodes using ajax functionality.

You can download it from the following link.

Download

Let us know if you need any assistance.

Regards,
Bhuvana

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.

;