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

Clone RadGrid Hierarchy rows

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 07 Jun 2011, 11:10 PM
I would like to create a hierarchical Grid that has a parent row and then 1-n child rows.
The parent row would be indexed by a unique datetime. Then containing many rows of data that would make up the
parent rows many attributes.

Example

Automobile          1/1/2009
                Color              red
                Engine            V8
                Horse Power  225

Automobile          2/1/2009
                Color              Green
                Engine            V6
                Horse Power  200

My question is if I had created the parent row and the children rows is there a way to select the parent and then copy/duplicate/clone
all of the rows that makeup the parent and children and then allow the user to set the new date for the copied parent row. 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 13 Jun 2011, 08:25 AM
Hello Marc,

You can implement this scenario by duplicating the parent and child item data in the master and detail table data sources. You can then rebind the grid and the duplicated row will appear in the master table with the same child data. For creating the master-child hierarchy, you can use either the DetailTables feature or the NestedViewTemplate feature.

Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or