I am trying to bind the data to telerick tree view dataSoure .But the data not getting into binded to the tree view.Telerick tree view is not rendering to the page with data in ItemCommand event.
Please find the code below which I am using to bind the data tree view in ItemCommand event
protected void radGridHierarchies_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "RowClick" && radGridHierarchies.SelectedItems.Count == 1)
{
int datascopeId = Convert.ToInt32(radGridHierarchies.SelectedValues["DatasourceId"]);
int dimensionId = Convert.ToInt32(radGridHierarchies.SelectedValues["DimensionId"]);
string hierName = radGridHierarchies.SelectedValues["HierarchyName"].ToString();
datascopeId = 11;
List<CharHierLevel> lstHierLevel = _presenter.GetCharHierLevelDetails(datascopeId, dimensionId, hierName);
radTreeCharHierLevel.DataTextField =
"HierarchyLevelName";
radTreeCharHierLevel.DataValueField =
"HierarchyLevelName";
radTreeCharHierLevel.DataFieldID =
"HierarchyLevelName";
radTreeCharHierLevel.DataFieldParentID =
"HierarchyLevelParent";
radTreeCharHierLevel.DataSource = lstHierLevel;
radTreeCharHierLevel.DataBind();
}
}
Note:The issue I could not find in design time .if any one got this king of issue the Immediate help will be highly appreciated