Hi
I amhaving radgrid which has NestedGrid also. I would like to see my row is beingselected when invoking edit and close the editpopup window. So that the clientcan be known what row is selected after coming back from updating or closingthe PopUp window?
I used the below scenarios, it is working fine with singlegrid. But in nested grid suppose I expanded two parent items in order to edittheir child items. I could not able to save the state of row after theoperation has been done.
if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
{ |
if (!e.Item.OwnerTableView.IsItemInserted) |
{ |
Session["selIndex"] = e.Item.ItemIndex; |
} |
e.Item.Selected = true; |
isSelected = true; |
} |
protected void RadChild1_PreRender(object sender, EventArgs e) |
{ |
if (!isSelected && Session["selIndex"] != null) |
{ |
RadChild1.MasterTableView.Items[(int)Session["selIndex"]].Selected = true; |
Session["selIndex"] = null; |
} |
isSelected = false; |
} |