Hi,
I have a RadGrid with a NestedViewTemplate in a DetailTable in a DetailTable.
So the grid (without columns etc) looks like this :
In the template there is a button for the user to click.
When the user clicks the button i need to know what the parent row is, so i can get the datakeyvalue of that row.
I tried this by setting the row to selected as soon as the user expands it but since there can be multiple rows expanded this isn't working.
Anybody any ideas?
I have a RadGrid with a NestedViewTemplate in a DetailTable in a DetailTable.
So the grid (without columns etc) looks like this :
| <telerik:RadGrid ID="customerRadGrid"> |
| <MasterTableView DataKeyNames="CustomerID"> |
| <DetailTables> |
| <telerik:GridTableView DataKeyNames="ProductID"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="CustomerID" MasterKeyField="CustomerID" /> |
| </ParentTableRelation> |
| <DetailTables> |
| <telerik:GridTableView DataKeyNames="SupplierID"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="ProductID" MasterKeyField="ProductID" /> |
| </ParentTableRelation> |
| <NestedViewTemplate> |
| <asp:Button ID="startButton" runat="server" Text="Start" |
| onclick="startButton_Click" /> |
| </NestedViewTemplate> |
| </telerik:GridTableView> |
| </DetailTables> |
| </telerik:GridTableView> |
| </DetailTables> |
| </MasterTableView> |
| </telerik:RadGrid> |
In the template there is a button for the user to click.
When the user clicks the button i need to know what the parent row is, so i can get the datakeyvalue of that row.
I tried this by setting the row to selected as soon as the user expands it but since there can be multiple rows expanded this isn't working.
Anybody any ideas?