I'm using a tabular dataset parsed through the ConvertTabularDataToHierarchical function, the code used is below:
In the page load function:
hierarchicalData = NineRays.WebControls.FlyTreeView.ConvertTabularDataToHierarchical(dbread, \"CompleteLCNTreeMk3\", \"ChildID\", \"ParentID\")
FlyTreeView1.DataSource = hierarchicalData
FlyTreeView1.DataBind()
In node_databound:
Dim val1 As String = DataBinder.Eval(e.Node.DataItem, \"ChildID\")
Dim val2 As String = DataBinder.Eval(e.Node.DataItem, \"ChildName\")
e.Node.Text = String.Format(\"{0}: {1}\", val1, val2)
e.Node.PopulateNodesOnDemand = True
In PopulateNodes
e.Node.ChildNodes.DataSource = hierarchicalData
e.Node.ChildNodes.DataBind()
e.Node.PopulateNodesOnDemand = True
I've tried filtering the dataset at source so it only returned the root & 1st level children, and then tried accessing a seperate 'complete' dataset to populate further children, however this didn't return any data. Is there a way to filter the hierarchical Dataset generated?