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.
ok..
I Got one of the Article by
Vince McDonaldManager of Developer Support, MCPInfragistics, 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.