Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Asynchronously trigger details view on click of last treeview node

Posted on 2009-05-12
2
Medium Priority
?
381 Views
Last Modified: 2012-05-06
I have two ajax update panels on my page.  Update panel A contains a treeview where the first nodes are populated during the init routine of the page and the subsequent two levels are populated on demand when they are expanded.  

Update panel B contains some text boxes, labels, etc.  What I want to do is when I click the link of the lowest child node I want to post back the update panel, go to the DB and get the record (details) that corresponds to the final child node I clicked and populate the controls in update panel B with the details.  I thought I might just do this through javascript forcing an update of the panel B but I can't seem to get it to work, and I can't figure out where to put the code to hit the DB and populate the text boxes.

Help is appreciated.

0
Comment
Question by:jclemo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Expert Comment

by:DreamsTech
ID: 24371782
i feel Ajax Triggers can be helpful in this case. http://www.asp.net/Learn/ajax/tutorial-02-cs.aspx

In the updatePannel B : Put a trigger ,and and associate with the Last Node of ur tree.IF u r dynamically generating the nodes then also set the control id for the Trigger runtime to ur specified Tree Node.

On Clicking of Tree Node ,hit the DB as Normally ,fetch the data and populate the controls present in the Panel B.
<Triggers> <asp:AsyncPostBackTrigger ControlID="lnkNode" EventName="Click" /> </Triggers>

Open in new window

0
 

Accepted Solution

by:
jclemo earned 0 total points
ID: 24382253
did it with server side code after all.. thanks for help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question