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

RadGrid with child rows inside a row

1 Answer 630 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 06 Aug 2012, 07:26 AM
Hi All,

I am facing a situation where I need a grid where there are multiple rows. Now, inside each row there can be multiple child rows and each child row should be editable.

Eg.

Col1         Col2        Col3    Col4   (Row1)
                Col2        Col3    Col4
                Col2        Col3    Col4


Above is only 1 row. So, in that Col1 is repeating only once, but other columns are repeating mulitple times, as well as they are editable (but Col1 is not editable). So, now on saving all the data from Row1 should go to database.

The good thing is that only one row is editable at a time. I want the look and feel exactly like this....Actually grouping does not give a look and feel like this and I don't know whether it is editable or not....

If anyone can put a light into this then it will be of good help....Thanks in advance.

Dhaval Tamhane

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 09 Aug 2012, 07:27 AM
Hi Dhaval,

To achieve the desired functionality you could try using the hierarchical RadGrid. On the following link you could find online example which demonstrates it:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx
In your case you could  populate the child GridTableView with the same columns as parent MasterTableView and enable editing only to the child GridTableView. Please give it try and let me know if it helps you.

Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or