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

master detail grid

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Walter
Top achievements
Rank 1
Walter asked on 10 Mar 2009, 05:19 PM
Hi,

I have a specific "master/detail" grid that should allow editing master and detail data at the same time. Grid displays "Order"-"OrderItem" data.
At master level only "Order" rows are displayed  
When master row is expanded "Order" data and "OrderItems" grid should be displayed in ItemTemplate in a way that grid with details is in the middle of item template and Order data are in "headder" and "footer".
The same data field position should be done also in edit Item template.

Sollutions I thought about are the following :
1) Using edit item template with nested RadGrid2 (In this case I have problems with RadGrid2 keys... I use composite keys and need to know RadGrid1 key to create RadGrid2 key )
2) Using Custom user control inside RadGrid1 that contains RadGrid2... The same problem with keys as 1)

The biggest problem is that there is no key on InitInsert since it is available only on PerformInsert when data is inserted in table row, so I tried to create a row on Initinsert and to read key (autoincrement) and set it to grid item , but was not succesfull with that.

What would be the best approach to solve this problem? Has anyone had a similar problem / how did you solve it?.. any sample code would be very wellcome.

Greetings, 
    Walter

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 13 Mar 2009, 10:58 AM
Hi Walter,

What is the present setup? Do you have a hierarchy in place? Or, are you looking for a way to have a nested view, as shown in this example?

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Walter
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or