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

How to have multiple Child tables under parent using HierarchyChildTemplate?

1 Answer 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 18 Feb 2014, 04:09 PM
I am trying to setup a RadGridView bound to the a collection similar to the following:
public partial class JobDTO
{
    public int Id { get; set; }
    public string JobNumber { get; set; }
 
    public ObservableCollection<MachineTrackerDTO> MachineList { get; set; }
    public ObservableCollection<FixtureTrackerDTO> FixtureList { get; set; }
 
    public JobDTO()
    {
        MachineList = new ObservableCollection<MachineTrackerDTO>();
        FixtureList = new ObservableCollection<FixtureTrackerDTO>();
    }
 
}


I would like the have the MachineList and FixtureList collections as child tables (HierarchyChildTemplate) when displaying the RadGridView, but I also want control of the columns, formats, etc. of the child lists.  For a single child table, this is very easy (from the examples) using HierarchyChildTemplate.  However, I can't figure out how to accomplish with multiple child tables that are at the same level.

Is this possible?

Thanks,
Tim

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 21 Feb 2014, 10:00 AM
Hi Tim,

I would suggest you to have  RadGridView with RowDetails. To achieve your purpose, you should define a proper RowDetailsTemplate. You can check our online documentation and WPF Demos for a further reference.

Let me know if you have any additional questions.

Regards,
Didie
Telerik
Tags
GridView
Asked by
Tim
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or