Hi
I have a treeview control inside a radcombobox.
When I try to databind to the treeview Iam getting error "These columns don't currently have unique values"
It works fine if I comment " .DataFieldParentID = "ParentId", but parentId column cannot have unique values.
I am confused can any one help me in this regard.
radTree = DirectCast(RadComboBoxCategoryLevels.Items(0).FindControl("RadTreeView"), RadTreeView)
radTree.Nodes.Add(New RadTreeNode("Any Category", ""))
If Not IsNothing(dtCategoryLevels) Then
With radTree
.DataTextField = "Name"
.DataValueField = "FriendlyURL"
.DataFieldID = "id"
.DataFieldParentID = "ParentId"
.DataSource = dtCategoryLevels
.DataBind()
End With
End If
I have a treeview control inside a radcombobox.
When I try to databind to the treeview Iam getting error "These columns don't currently have unique values"
It works fine if I comment " .DataFieldParentID = "ParentId", but parentId column cannot have unique values.
I am confused can any one help me in this regard.
radTree = DirectCast(RadComboBoxCategoryLevels.Items(0).FindControl("RadTreeView"), RadTreeView)
radTree.Nodes.Add(New RadTreeNode("Any Category", ""))
If Not IsNothing(dtCategoryLevels) Then
With radTree
.DataTextField = "Name"
.DataValueField = "FriendlyURL"
.DataFieldID = "id"
.DataFieldParentID = "ParentId"
.DataSource = dtCategoryLevels
.DataBind()
End With
End If