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
504
DataKey for a node is becoming null
posted

Hi,

I am using a webtree to load on demand and setting the node's datakey in the process. After adding the first few children, datakey is becoming null and hence i am getting NUll Reference.

Please see the attached solution for more reference. You can debug the solution step by step and see that After adding the firsrt four children of the parent node, when i click on the Child 0, the WebTreeNodeEventargs e has DataKey 'NULL" which does not allow me to add more children. Intersting thing i saw is that when i debug the NodeExpanded evenet, there e has the Datakey associated with it. It only loses the data key when it reaches to the DemandLoad event.

 

Any help on this is really appreciated.

 

I tried attaching the solution but it did not go. any way to send the solution.

  • 504
    Suggested Answer
    posted

    ok..

    I Got one of the Article by

    Vince McDonald
    Manager of Developer Support, MCP
    Infragistics, Inc.

     

    Which says this is the default behavior of the WebTree when using ManaualSmartcallbacks. so setting it back to Manaual working for me. That article also says we would have to manage the DataPath.