Solved

Asynchronously trigger details view on click of last treeview node

Posted on 2009-05-12
2
365 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
Comment Utility
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
Comment Utility
did it with server side code after all.. thanks for help.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

763 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

8 Experts available now in Live!

Get 1:1 Help Now