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
220
SelectedNode.DataKey always null
posted

How do you set the Datakey ? I've bound the webtree to a WebHierarchicalDataSource which contains 2 sqldatasources.
The tree renders correct and shows a 2 level tree. I try to assign the datakey like this:

UltraWebTree1.Levels[0].LevelKeyField = "idMenu";
UltraWebTree1.Levels[1].LevelKeyField =
"idMenu2";

I also tried different settings for the LoadOnDemand and DataKeyOnClient but SelectedNode.DataKey always returns null.

Any suggestions ?