For example I have treeA and treeB. When I click node in treeA, I want it to populate treeB according to the node selected without postback.
Is it possible to do it? thx :)
Hello!
What kind of data do you want to put in treeB? Do you have that data already loaded in your page? If your answer is yes you must handle the click event in treeA and insert the nodes in treeB using the jscript API available. If your answer is no... You can implement an webservice that will be called when you click in node on treeA. That webservice will produce the data that you will use to fill your treeB (using the jscript API).
Both solutions don't postback to server... But the second one needs to contact to your server.
If your are using AJAX you may do an asynch postback(it is a postback but will produce a small response than a normal postback) that will only render rhe treeB.
Bye,
Carlos Marcão (altitude Software, Portugal)
hallo carlos,
the data is not loaded yet in the page, it loads when node in treeA clicked, thx for the hint i also thinking of that possibility but i am still not sure whether can fill the treeB.
however to quit the hustle bustle i decided to use frame so treeA and treeB is in different frame, it makes it simpler thanks for your help :)
since i already half way, it's little late to modif my code again T_T, i'll try WARP after i finish the design and functionality first, thx for the hint :)
but it is not partial post back, it's full postback, however because I already wrap it in WARP, the screen didn't flick.
I have wrap other tree in WARP to, so if i want to do postback i trigger it from client, by the way, i am using frame, each frame has only 1 tree, so if i do postback didn't affect other component :P
I realize that my ideas maybe not too good, because I'm not using full advantage of WARP
As long as it is working, any idea is good. I like the approach.
If you want to use the WARP standard approach, you can use the client-side refresh() method of the WARP - it automatically refreshes the WARP panel and all controls inside it.
More info on WARP client side object model can be found in the online help (the last link from the navigation left)
http://help.infragistics.com/NetAdvantage/NET/2008.2/CLR2.0/