Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Load on Demand node click issue
posted

 

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

Parents
No Data
Reply
  • 28464
    posted

    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. 

Children