or
Hello
I am attempting to bind 3 tables of data to a Treeview using lists:
| vwMarketTypex mtype = markettypecontroller.GetView(STR_MarketType, STR_TimePeriod); |
| List<Symbol> currencies = Symbolcontroller.GetSymbolsByMarketType(mtype.MarketTypeID); |
| List<Scenario> scenarios = senariocontroller.GetAllScenarios(); |
| List<RZEROMarketData.Data.RuleSet> rulesetsx = rscontroller.GetAllRulesets(); |
| radTreeView1.RootRelationDisplayName = "Curreny Pair"; |
| var newRelationBinding = new RelationBinding("Scenarios", scenarios, null, "ScenarioDescription", "ScenarioId"); |
| radTreeView1.RelationBindings.Add(newRelationBinding); |
| var newRelationBinding1 = new RelationBinding("Rulesets", rulesetsx, null, "Name", "RulesetId"); |
| radTreeView1.RelationBindings.Add(newRelationBinding1); |
| radTreeView1.DataSource = currencies; |
The last object rulesetsx does not bind ..please can you advise if I am on the right track.
Thanks




Hi Guys,
I am having a problem populating a RadTreeView with a Dataset that contains a DataRelation. As I step through the code the DataSet returns two tables and they both contain the correct values I want shown on the form, however, it only displays the first table’s data on my form. I am using the most current version of controls.
The following is a snippet of the source code that contains the problem described above:
| private void LoadTreeView() |
| { |
| DataSet dsData = new DataSet(); |
| int intDocID = 10; |
| tvrDocs.Nodes.Clear(); |
| dsData = AppDocument.GetDocumentTreeView(intDocID); |
| if (dsData != null) |
| { |
| DataColumn parentColumn = dsData.Tables[0].Columns["DocGlobalRuleTypeID"]; |
| DataColumn childColumn = dsData.Tables[1].Columns["DocGlobalRuleTypeID"]; |
| // Create DataRelation. |
| DataRelation drGlobalVar; |
| drGlobalVar = new DataRelation("GlobalVar", parentColumn, childColumn); |
| // Add the relation to the DataSet. |
| dsData.Relations.Add(drGlobalVar); |
| tvrDocs.DataSource = dsData; |
| } |
| dsData.Dispose(); |
| } |
Please let me know what I can do to solve this issue.
Many Thanks,
Mike





