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 ?
This look like an issue that we might need to address. I think it is best to contact Developer Support directly so that they can investigate that further and in the case of a bug, to log it so you can track the progress. Developer Support can be reached via:
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
Meanwhile, is it possible to hook the NodeBound event? It fires for each node bound and you can map fields from the datasource to node properties there. Or alternatively, use the TreeNodeBindings functionality in design time to map fields to properties.