Hello!
I am attempting to send the an ID value from one RadGrid Row to a RadGrid in a modal window as a DataKey using rowIndex.
I sucessfully get the cell value but right now it is just sending it to OwnerTableView rather than my modal window grid.
aspx.cs code:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e){
if (e.Item is GridDataItem)
{
RadButton partsBtn = (RadButton)e.Item.FindControl("RadButton1");
partsBtn.Attributes["href"] = "javascript:void(0);";
Console.WriteLine(e.Item.ItemIndex);
partsBtn.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["OrderID"], e.Item.ItemIndex);
}
}
I only want the modal Grid to populate with values that also have that ID (multiple values).
Any thoughts on this?