I've run into this issue before, but I can't remember how I resolved (or avoided) it.
I've nested a RadGrid inside the NestedViewTemplate of another RadGrid. I've attached a picture of the issue. In this case I expanded the first row (at which point things look normal) and then the second row. In Firebug I've selected the nested RadGrid of the first row which appears to be a solid line. It seems the MasterTableView has disappeared. The outer grid is ajaxified, but the behavior is identical when I set EnableAjax="false". I'll paste the code for the RadGrids. The outer grid is rgAgencies; the inner grid is rgSpecifications; rg refers to both grids (and so rgMaster refers to both grids' MasterTableView).
I've nested a RadGrid inside the NestedViewTemplate of another RadGrid. I've attached a picture of the issue. In this case I expanded the first row (at which point things look normal) and then the second row. In Firebug I've selected the nested RadGrid of the first row which appears to be a solid line. It seems the MasterTableView has disappeared. The outer grid is ajaxified, but the behavior is identical when I set EnableAjax="false". I'll paste the code for the RadGrids. The outer grid is rgAgencies; the inner grid is rgSpecifications; rg refers to both grids (and so rgMaster refers to both grids' MasterTableView).
protected void rgMaster_Init(object sender, EventArgs e){ GridTableView gtv = sender as GridTableView; gtv.CommandItemDisplay = UserInfo.IsInRole(PortalSettings.AdministratorRoleName) ? GridCommandItemDisplay.Top : GridCommandItemDisplay.None;}protected void rgAgencies_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext()) { rgAgencies.DataSource = dbContext.Agencies.Where(a => !a.AgencyDeleted).ToList(); }}protected void rgSpecifications_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ RadGrid rg = sender as RadGrid; GridDataItem item = ((GridNestedViewItem)rg.NamingContainer).ParentItem as GridDataItem; using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext()) { Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32(item.GetDataKeyValue("AgencyID"))); IEnumerable<InternshipSpecification> list = agency.InternshipSpecifications.ToList(); if (list.Count() == 0) rg.Visible = UserInfo.IsInRole(PortalSettings.AdministratorRoleName); else rg.DataSource = agency.InternshipSpecifications.ToList(); }}protected void rgAgencies_ItemDataBound(object sender, GridItemEventArgs e){ if (e.Item is GridDataItem) { GridDataItem item = e.Item as GridDataItem; using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext()) { Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32(item.GetDataKeyValue("AgencyID"))); RadRating rr = item["Rating"].Controls.OfType<RadRating>().Single(); IEnumerable<Score> ratings = agency.AForms.Select(a => a.Internship). Where(i => i.InternshipGFormID.HasValue && i.GForm.OverallScore.ScoreValue != Score.NA). Select(i => i.GForm.OverallScore).ToList(); if (ratings.Count() == 0) rr.Enabled = false; else rr.Value = ratings.Select(s => s.ScoreValue - 1).Average(i => (decimal)i); } }}protected void rgAgencies_ItemCommand(object sender, GridCommandEventArgs e){ if (e.CommandName == "InitInsert") { e.Canceled = true; rwEditAgency.VisibleOnPageLoad = true; loadAgencyData(null); } else if (e.CommandName == "Edit") { e.Canceled = true; rwEditAgency.VisibleOnPageLoad = true; using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext()) { Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32((e.Item as GridEditableItem).GetDataKeyValue("AgencyID"))); loadAgencyData(agency); } } else if (e.CommandName == "Delete") { using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext()) { Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32((e.Item as GridEditableItem).GetDataKeyValue("AgencyID"))); agency.AgencyDeleted = true; dbContext.SubmitChanges(); } }}protected void rgPreRender(object sender, EventArgs e){ RadGrid rg = sender as RadGrid; rg.Columns.FindByUniqueName("Buttons").Visible = UserInfo.IsInRole(PortalSettings.AdministratorRoleName);}