Custom Template in ChildTableDefinition

1 posts, 0 answers
  1. Siva
    Siva avatar
    10 posts
    Member since:
    Sep 2012

    Posted 06 Oct 2012 Link to this post


    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.
Back to Top