Hi,
Im having an issue trying to bind to a linq anonymous type. I can bind find as long as i don't specify a 'DataFieldParentID', if i specify that DataFieldParentID then the dropdowntree control just displays no items.
So if i comment out the line below: rdt.DataFieldParentID = "ParentID"; then the control loads fine with the options i expect and i am able to select and use them fine, it simply seems to be an issue when trying to create a hierarchy.
My drop down tree control is inside a RadListView and i am binding on the ItemDataBound event, my code for binding if the following:
var x = from y in services select new { ID = y.ID, ParentID = y.PrimaryWorkType.ID, myText = y.Description};
RadDropDownTree rdt = (RadDropDownTree)e.Item.FindControl("ddlAffectedServices");
rdt.DataTextField = "myText";
rdt.DataValueField = "ID";
rdt.DataFieldID = "ID";
rdt.DataFieldParentID = "ParentID";
rdt.DataSource = x;
rdt.DataBind();