Requirements |
|
RadControls version |
|
.NET version |
|
Visual Studio version |
|
programming language |
|
browser support |
all browsers supported by RadControls |
PROJECT DESCRIPTION
I have problems with Rad treeview:
I have a dataset that contains 2 datatables.
First table : Parent_ID , Parent_Text
Second table : Parent_ID, CHild_ID, Child_Text
DataColumn parentColumn = gl_dsLayerLOBsWIN.Tables["PriceLayerWin"].Columns["Layer"];
DataColumn childColumn = gl_dsLayerLOBsWIN.Tables["PriceLayerLOBWin"].Columns["Layer"];
DataRelation relation = new DataRelation("parent2Child", parentColumn, childColumn);
gl_dsLayerLOBsWIN.Tables[
"PriceLayerLOBWin"].ParentRelations.Add(relation);
radGridView_Layers.DataSource = gl_dsLayerLOBsWIN.Tables[
"PriceLayerWin"];
radTreeView_Layers.RelationBindings.Add(
new RelationBinding("PriceLayerWIN_PriceLayerLOBWIN", gl_dsLayerLOBsWIN));
radTreeView_Layers.DataSource = gl_dsLayerLOBsWIN;
Initially Dataset is empty. When I add a row to Parent datatable and a couple of rows to Child Datatable I see only first level node(s).... I do not see sublevels.
Could you , please help me with this.
I tried to use Gridview for this purpose also and tried to group it, but I still do not see any data for sublayers .. may be I'm missing something ...
Thank you ,
Victoria.