Hi Support,
Can the TreeListView bind to the new RadDomainDataSource control? I ask because I am trying to bind it and all I get is the top tier of items in my collection.
XML looks like this;
ddsCommentActivities is my RDDS. I'm returning a List<TreeviewHierarchy> which looks like this;
I feel this list with data, right now testing four levels deep meaning, one parent->child->child->child. I would think I would see the TreeListView control displaying the data but it only shows the "parent" and no drop down selector. Am I doing something wrong?
Thanks in advance!
Can the TreeListView bind to the new RadDomainDataSource control? I ask because I am trying to bind it and all I get is the top tier of items in my collection.
XML looks like this;
<
telerik:RadTreeListView
x:Name
=
"ActionThreadTreeView"
Grid.Row
=
"1"
ItemsSource
=
"{Binding DataView, ElementName=ddsCommentActivities}"
>
<
telerik:RadTreeListView.ChildTableDefinitions
>
<
telerik:TreeListViewTableDefinition
ItemsSource
=
"{Binding Children}"
/>
</
telerik:RadTreeListView.ChildTableDefinitions
>
<
telerik:RadTreeListView.Columns
>
I define columns here.
</
telerik:RadTreeListView.Columns
>
</
telerik:RadTreeListView
>
ddsCommentActivities is my RDDS. I'm returning a List<TreeviewHierarchy> which looks like this;
public class TreeviewHierarchy
{
public TreeviewHierarchy()
{
//Create new childrens class so that it's not null.
Children = new List<
TreeviewHierarchy
>();
}
public TreeviewHierarchy( int id, string actName, string actStatusName, string applStatusName, Nullable<
System.DateTime
> applStatusDate )
{
Id = id;
ActivityName = actName;
ActivityStatusName = actStatusName;
ApprovalStatusName = applStatusName;
ApprovalStatusDateTime = applStatusDate;
//Create new childrens class so that it's not null.
Children = new List<
TreeviewHierarchy
>();
}
[Key]
public int Id { get; set; }
public string ActivityName { get; set; }
public string ActivityStatusName { get; set; }
public string ApprovalStatusName { get; set; }
public Nullable<
System.DateTime
> ApprovalStatusDateTime { get; set; }
public IList<
TreeviewHierarchy
> Children { get; set; }
}
I feel this list with data, right now testing four levels deep meaning, one parent->child->child->child. I would think I would see the TreeListView control displaying the data but it only shows the "parent" and no drop down selector. Am I doing something wrong?
Thanks in advance!