Solved

Asynchronously trigger details view on click of last treeview node

Posted on 2009-05-12
2
368 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

815 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now