When commands are initiated from the inner RadGrid, only the inner RadGrid's ItemCommand event should be fired. I cannot reproduce the scenario you are describing, i.e. parent RadGrid's ItemCommand event fired on child grid's command. Can you give me exact steps how to reproduce this?
On the other hand, if you want a selected row on the child grid to automatically select a parent item, you can implement this logic both on the client and the server.
For the client-side approach, you can use the nested RadGrid's OnRowSelected client event:
In the event handler, we find the parent data row element and select it:
parentNestedRow = Telerik.Web.UI.Grid.GetFirstParentByTagName(sender.get_element(),
parentTable = $find(Telerik.Web.UI.Grid.GetFirstParentByTagName(parentNestedRow,
parentDataRow = parentNestedRow.previousSibling;
The server side approach is similar, only we use the SelectedIndexChanged server event of the nested grid:
sender, EventArgs e)
RadGrid RadGrid2 = (RadGrid)sender;
(RadGrid2.SelectedItems.Count > 0)
GridNestedViewItem nestedItem = (GridNestedViewItem)RadGrid2.NamingContainer;
Attached is a sample page demonstrating this approach. You can also note the 2 grid's ItemCommand events do not mix.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items