Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(AJAX) Tree Inside Upate Panel can't get parent node on click??

Status
Not open for further replies.

johnfraser

Programmer
Jul 25, 2007
33
US
Okay so when I dynamically add items to the tree using the update panel when I fire a server side event I don't have access to the parent.

I can sort of understand why but it doens't mean I like it nor does it mean that I don't need to have access. The question is really how???

So, bottom line, how can I get the parent?

e.Node.Parent is always null if the node was added in a previous AJAX call.
 
1st, we need to see code. (markup and code behind)
2nd, are you sure the update panel is causing the problem? (i.e. remove the update panel and see if it works between postbacks.)
3rd, if you are dynamically adding controls to they page (not using declarative markup) then you need to rebuild your tree with each postback.


Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top