Hello, i have really simple RadTreeView control.
but there is an issue, nodes only display if they have "0" ParentID. I put the code like telerik's examples and also table content is correct.
Why i cant put any child nodes which their ParentID is ParentID > 0
var ds = db.Finding.AsQueryable().ToList();
treeView.DataTextField =
"VulnerabilityCode"
;
treeView.DataValueField =
"ScanId"
;
treeView.DataFieldID =
"Id"
;
treeView.DataFieldParentID =
"ParentId"
;
// only shows where this value is ZERO
treeView.DataSource = ds;
treeView.DataBind();
<
telerik:RadPane
runat
=
"server"
Scrolling
=
"None"
>
<
telerik:RadSplitter
runat
=
"server"
Orientation
=
"Horizontal"
>
<
telerik:RadPane
runat
=
"server"
>
<
telerik:RadTreeView
ID
=
"RadTreeView2"
IsExpanded
=
"True"
runat
=
"server"
Skin
=
"WebBlue"
Height
=
"600px"
Width
=
"100%"
>
</
telerik:RadTreeView
>
</
telerik:RadPane
>
...