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
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