Bozhidar said:Hi,
Could you specify whether the two columns in your SQL table have the same data type?
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Hi Bozhidar,
Attached is an image showing the result set that I'm using, Parent and child columns are int type.
I'm also trying with declarative binding, but I get the same message error.
1.
<
telerik:RadTreeView
ID
=
"treeSupplier"
runat
=
"server"
DataFieldID
=
"leafName"
2.
DataFieldParentID
=
"Parent"
DataSourceID
=
"SqlDataSource1"
>
3.
<
DataBindings
>
4.
<
telerik:RadTreeNodeBinding
TextField
=
"leafDisplayName"
/>
5.
<
telerik:RadTreeNodeBinding
Depth
=
"0"
TextField
=
"leafDisplayName"
/>
6.
</
DataBindings
>
7.
</
telerik:RadTreeView
>
I realized that when the datasource only contains two hierarchy levels (I refer to row 1 to 11 in the attached image) the treeview shows perfectly, but when the datasource includes also rows 12-14 I get the error.
:(