This is a migrated thread and some comments may be shown as answers.

Custom Template in ChildTableDefinition

0 Answers 43 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Siva
Top achievements
Rank 1
Siva asked on 06 Oct 2012, 02:54 PM
Hi,

I am trying to build three level display with different datatypes. If I understood it correct, TreeListView can show Hierarchy items, when they have same Property Name. But I need to define a template where I can bind to a different column in child element. How can I achieve this?


I have my objects as below.
public Class 2ndLevel
{
public string RecordName;
public string PublishStatus;
}

public class ChildElement
{
public string ChildName;
public string LinkStatus;
public List<2ndLevel> Elements;
}

public class RootObject
{
public string Name;
public string Status;
public List<ChildElement> ChildElements;
}

I will bind List<RootObject> to TreeListView and will show Name and Status in the Columns. I have to show ChildName and LinkStatus in the 1st level children and RecordName, PublishStatus in the second level children.

Altogether there will be only two columns.. but the child elements will have different names.

I feel this is definitely doable with TreeListView.. But not able to find any example to do so. Can someone help me to achieve this.

No answers yet. Maybe you can help?

Tags
TreeListView
Asked by
Siva
Top achievements
Rank 1
Share this question
or