dhtmlxForm, dhtmlxtreegrid and dhtmlxDatastore

I tried to bind a dhtmlxForm to a dhtmlxtreegrid using a dhtmlxDatastore, but apparently that’s not a supported operation. What are my options?
What is the best way to display information in a dhtmlxform from a dhtmlxtreegrid ?

Thanks

Cyril

Hi,
dhtmlxTreeGrid data is a tree, but dhtmlXDataStore data is linear.
So there is no way to load data from datastore to treegrid (it doesn’t support sync with treegrid).
But you may load data in treegrid manually and use something like this:

var formData = [
	{type: "label", label: "Selected record"},
	{type: "input", name: "text", value: "", 	labelWidth:100, label:"Book"}
];
myform = new dhtmlXForm("form_cont", formData);
myform.bind(treegrid);