Hi Everyone,
I have a very complicated solution with different controls etc.. so it is very hard for me to post any example code.
I am current experiencing the following problem. I have a web tree which is populated on the server side during page load.
I am also using the load on demand manual smart call backs which i use to add more nodes to the tree when they are expanded without postbacks. This all works fine. the loading text is displayed while my tree is populated etc.... then i see my nodes in the tree after.
The problem i am experiencing is after the nodes have been added the node click event is not fired for those particular nodes (however i see a post back occurs). I set a breakpoint in my code which should be hit and it is not. This only occurs with the nodes that have been added during the load on demand process. The nodes which were added on page load can still be clicked and the event is fired. My breakpoint in the code is hit.
Has anybody had a similar issue? Any help or advice would be much appreciated.
Best regards
Andrew
Hello Andrew,
Yes, I think I know what is going on. The problem is described in details in the following KB article:
PRB:State of new nodes is lost when using ManualSmartCallbacks for WebTree
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=9685
Basically, any postback operations like NodeClick will not play nicely with ManualSmartCallBack, since they have been added on the client and their state does not exist on the server. This is one of the limitations of the ManualSmartCallBack mode. Luckily, there are other modes that support that - please, check out the article for detailed information on what are the pros and cons of each specific callback mode for the treeview.
Hi Rumen,
Thanks for your speedy reply, it is much appreciated.
I read the article which you sent and I understand the problem.
However what is not clear is how i can achieve adding more nodes to a tree on the server side without performing postbacks. I really need the on node click event, this is an important part of my application. However i really like the functionality of the ManualSmartCallBacks where the tree displays "loading" then more nodes are added.
I have tried all different types of load on demand, manual, automatic, automaticsmartcallback, however the only one with my desired effect is manual smart call back which then prevents me using the node click event. Unless i have programmed something incorrectly. Is it only possible to have this "loading" displayed with no post backs using the manualsmartcallback?
I know i could achieve this with a WARP panel but i am a bit reluctant to does this at the moment.
Once again thanks in advance for any further information