I face the following problem : when i try to bind Telerik Treeview
These columns don't currently have unique values.
My code :
protected void BindRTV()
{
rtv_acd.DataTextField = "name";
rtv_acd.DataValueField = "main_id";
rtv_acd.DataFieldID = "main_code";
rtv_acd.DataFieldParentID = "father_code";
rtv_acd.DataSource = dt;
rtv_acd.DataBind();
}
Data snapshot :
How to fix this problem, i know that the main_code
is repetitive but i want that .