This is my data on datasource-
COMPANYID | CATEGORYID | COMPANYNAME | CATEGORYNAME |
---|---|---|---|
687d6bf7 | 103b9297 | a123 | abc |
687d6bf7 | 6903d527 | a123 | xyz |
This is my code-
<
telerik:RadTreeView ID="RadTreeView1" runat="server" DataSourceID="ObjectDataSourceCompany"
DataTextField="COMPANYNAME" DataFieldID="CATEGORYID" DataFieldParentID="COMPANYID"
DataValueField="CATEGORYID">
</telerik:RadTreeView>
This is the Error-
This constraint cannot be enabled as not all values have corresponding parent values.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: This constraint cannot be enabled as not all values have corresponding parent values.
Did I miss anything...How do i fix this??