Home - Forums-.NET - FlyTreeView (ASP.NET) - Dropdown

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Dropdown
Link Posted: 25-Jun-2007 21:01
I am using dropdown and tabular data.

NineRays.WebControls.FlyTreeView.ConvertTabularDataToHierarchical(X, \"Y\", \"TestID\", \"Testparentid\");

TreeView:


TreeView display TextField and Dropdown/input display ValueField
Dropdown and Tree only works when: TextField=\"TestName\" ValueField=\"TestName\"

I am using same Java as Demo_Dropdown.aspx

How can I display TestName and get TestID (dropDownTreeViewTest.SelectedNode.Value)

My Java is week so please be explict if you have a solution .......
Link Posted: 25-Jun-2007 21:29
Do you need to set input value to TestName and get TestID at client side?

If yes, then


function setInputText() {
  var treeview = CFlyTreeView.getInstanceById(treeviewID);
  var selectedNode = treeview.getSelectedNode();
  var text = selectedNode ? selectedNode.getText() : \"\";
  var value = selectedNode ? selectedNode.getValue() : \"\";
  var tvInput = document.getElementById(\"tvInput\");
  tvInput.value = text;
}
Link Posted: 25-Jun-2007 21:45
Thanks for your help !!