Hi,
If I used the Linq method, like the following codes, the parent nodes will be ignored. It will only work if i use the conventional dataset or datatable connection.
Did i miss out anything or this is the practice?
var TreeViewSource = from TreeData in dcBIDB.TblTreeDirectories select TreeData;
RadTreeView1.DataTextField = "Title";
RadTreeView1.DataFieldID = "CategoryId";
RadTreeView1.DataFieldParentID = "ParentId";
RadTreeView1.DataSource = TreeViewSource;
RadTreeView1.DataBind();
If I used the Linq method, like the following codes, the parent nodes will be ignored. It will only work if i use the conventional dataset or datatable connection.
Did i miss out anything or this is the practice?
var TreeViewSource = from TreeData in dcBIDB.TblTreeDirectories select TreeData;
RadTreeView1.DataTextField = "Title";
RadTreeView1.DataFieldID = "CategoryId";
RadTreeView1.DataFieldParentID = "ParentId";
RadTreeView1.DataSource = TreeViewSource;
RadTreeView1.DataBind();